Ghost focus problem #27
Comments
Thank you for reporting. What browser/OS/device is this on? |
Thanks for fast response. My environtment: web app + phonegap on android 4.1 galaxy nexus. I updated test case |
Having similar issue with contenteditable. Any quick temp hack to prevent it? |
i have the same problem, any idea how to prevent it ? |
@steverandy and @yfarooq are you both encountering the problem on Android? |
I reproduced the issue on Android 2.3.5 (caret in input field is moved to the position of click). |
@mattcg, it happens on mobile safari ios 6 for me. |
Thank you Mattcg for response, i am facing the problem on iOS . i am not sure if i am implementing it properly however the response of buttons changed. i want fast click to target all the buttons and links
after body start i have a div class with id FastClick
all my pages are here.
Cheers , |
Thanks @yamafarooq. That looks like a different issue. Will you create a test case and open a new ticket please? |
@dryabov thanks for that. I think the DOM manipulation caused by the logging is causing the browser to behave differently. |
You are right, I've postponed manipulations with setTimeout and the issue comes back. But the list of caught events was the same, so I've included other events to log (http://jsfiddle.net/HXRFM/2/show/). Result is: touchstart DIV#btn DIV#btn null So, the problem is that browser emulates mouse events after touchend. |
From http://jquerymobile.com/demos/1.2.0/docs/api/events.html
Most likely a minor modifying of DOM would be the way to cancel mouse events generation. |
@mattcg, this is a screen recording, showing the issue that I'm having. I'm not sure if it's because of the css3 animation or the confirm box. |
@zeroonea try this version: https://raw.github.com/dryabov/fastclick/master/lib/fastclick.js If it works, I'll create pull request. The issue is because of PS. Next week I'll try to fix |
@dryabov that's brilliant work tracking down the cause of the issue. спасибо! Please do make a pull request if this does work. |
Managed to fix my issue by using defer to wrap the function that will show the confirm dialog box. |
That did it for me too "https://raw.github.com/dryabov/fastclick/master/lib/fastclick.js" Thank you ! |
The patched version was merged into master in 17aea94. |
Click on a button to transition (css3 slide) to next page, if on next page there is an input right there the position of the button on previous page, the input will get focus and soft keyboard open up.
jsfiddle: http://jsfiddle.net/sX3WJ/
open it in mobile browser: http://fiddle.jshell.net/sX3WJ/show/
The text was updated successfully, but these errors were encountered: