Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Please help to solve click problem on gwtmobile (description inside...)

41 views
Skip to first unread message

Nut Tang

unread,
Aug 3, 2012, 12:43:26 AM8/3/12
to gwtm...@googlegroups.com
Dear all and dennis,

Thanks for your effort for develop gwtmobile. It is great choice for develop cross-platforms for mobile phone.

Now i got some strange problem and need your help (and everyone)

The problem is that i have multiple inputbox in each line (horizontalpanel inside of verticalpanel)

and when i click inputbox and keyboard shown, panel scroll up (is pushed by keyboard) and then it look like i click other object .

(It is click on position i release of my finger)


I record screen of problem and upload here, hope anybody and help!



Please help to fix this,

Many thanks -- Nut Tang




Dennis Z Jiang

unread,
Aug 7, 2012, 11:55:38 PM8/7/12
to gwtm...@googlegroups.com
Nut,

After watching the video a couple times, I think I understand the issue you are experiencing. That is, with the keyboard pushing the page up, the "register" button get pushed to the screen position where the focused textbox widget is initially located. Since gwtmobile fires a click event at that location, the click event is mistakenly passed on to the "register" button.

I think the solution is to suppress the click event when a textbox is receiving focus. Take a look at the onTouchStart() and onTouchEnd() methods in the DragControllerMobile class. You will find in the touch start method where it check if the target element is a form control. Add a boolean indicator for if the form control is a textbox. Then in the touch end method, check if the flag is on before firing the click event. That should fix the problem. 
Reply all
Reply to author
Forward
0 new messages