-
Notifications
You must be signed in to change notification settings - Fork 771
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
Fixing PanZoomBar and Panel issues after #164. #167
Fixing PanZoomBar and Panel issues after #164. #167
Conversation
See this warnings:
|
Thanks @jorix for your continued testing effort. Does it look better to you now? |
I have not done a thorough test, I only tried the points they I thought they could be problematic. Android:
Chrome and FF:
Now "closure_verify" provides no warning. |
@jorix, thanks for testing again, but are you sure you have pulled the latest? I just tried again, and my results are way more promising than yours: Android:
Chrome and FF:
|
The tests I usually make with VirtualBox+Android x86 2.2, now I've tested with a mobile device Android 2.2 and never fails. So far I had not noticed different behavior, except that my fingers are too big for my little mobile ;-) I downloaded your branch It seems that except for x86 code behaves well, so I think you can ignore the problem on Android x86. "prevail initial point of a drag (without touching the slider)" oops! |
Thanks @jorix for the explanation. I guess the mousedown-mouseup issue on the zoombar is very minor, don't you agree? For what it's worth, I use the Android Emulator for testing if I don't want to use a real mobile device. |
Yes agree, mousedown-mouseup issue on the zoombar is minor. Android x86 is not exactly an emulator is much faster than an emulator because it uses x86 architecture. But I have to find an update and see that the behavior is consistent with the native Android. |
For PanZoomBar, this fixes the slider behavior. Now the buttonclick listener argument also includes a buttonXY property, and PanZoomPanel does not need an Events instance for the zoombarDiv any more. For Panel, this fixes events for panels outside the map. Just setting the element on the Events instance was no longer enough after e70569b. Events::attachToElement is now used, and it needed to be modified to also work if the Events instance had no element previously. Finally, I renamed the button property of the buttonclick listener argument to buttonElement, to not confuse it with the browser event button property, and added some more tests and documentation.
For PanZoomBar, this fixes the slider behavior. Now the buttonclick listener argument also includes a buttonXY property, and PanZoomPanel does not need an Events instance for the zoombarDiv any more.
For Panel, this fixes events for panels outside the map. Just setting the element on the Events instance was no longer enough after e70569b. Events::attachToElement is now used, and it needed to be modified to also work if the Events instance had no element previously.
Finally, I renamed the button property of the buttonclick listener argument to buttonElement, to not confuse it with the browser event button property, and added some more tests and documentation.