简体   繁体   中英

Sencha Touch 2.x clicking on button but moving pointer before releasing mouse button doesn't work

I hadn't really seen this as a problem until my client mentioned that the majority of his clicks on buttons on the app I'm developing do nothing. I enquired a little about what exactly he was doing and it turns out that he was clicking (using a mouse, this is a sencha touch app that is embedded inside of a windows application and will ultimately be running on a windows 7 UMPC 'tablet') on a button and releasing BUT the pointer had moved between the click and the release (by a couple of pixels). However this seems to not trigger the tap handler for the button. The only way it works is if you click and release in the exact same spot with no dragging inside of the button at all.

I think thats a little odd - clicking and moving the pointer and then releasing, all while still inside of the button - should trigger the event handler IMO. Clicking, moving and releasing OUTSIDE of the button shouldn't (which it does, as expected).

Anyone else experience this or know of a way to counteract this behaviour?

Thanks

事实证明,只有当应用程序托管在WebKit.NET浏览器控件中时,这种情况才会发生-如果我只是在Chrome中运行该应用程序,则点击行为就可以了-可以单击并移动鼠标并释放(在按钮内),并且会触发onTap事件精细。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM