-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not correct position for alphaSlideBar after first init colorPickerView color. #64
Comments
hey @skydoves, do you have plans for fixing this? |
Hi, @PierfrancescoSoffritti ! I've already fixed this issue in my local repository, but I missed push and release a new version because of migrating to maven central. I will let you know about the next release soon. Thanks! |
Hey I just had time to try this out, version 2.2.3 still has the same issue. When dragging the slider, when approaching the end of the bar it snaps to the end of it. |
@PierfrancescoSoffritti |
Hi! I found several problems regarding initial selector positioning and also regarding touch events which makes the selector to snap either to the front or to the end of the bar within certain distance.
This way the selector is positioned always into the click point center and does not snap to 0 or max width, like it did before... The getBoundaryX is totally useless, it modifies the X rather wrong than correct, the modification can be made during touch event or selector positioning. Also setSelectorPosition had to be adjusted:
I did not touch the setSelectorByHalfSelectorPosition method, I don't know how that can be useful since it should also position the selector like the normal positioning... (if you set position to 0, the selector should start with x = 0, regardless if you are positioning it ByHalfSelector or by normal Selector position... May be my case was special, since I use the brightnessslidebar separately not attached to the colorpicker, since I need them to be separated, therefore I subclassed it and also added a listener to get the position of the selector when the user releases the thumb, but it was acting wrong until I modified those things. |
Has this issue been resolved? The selector is still snapping to the end of the bar when dragging. Using version 2.2.4 |
open demo ,you can find the alpha is 0xff, but not at the end of the sliderbar.
the problem is in your class file AbstractSlider.java
not divide by two.
brightnessSlideBar extends this class may be the same problem.
Hope it is useful to you.
The text was updated successfully, but these errors were encountered: