0

所以我使用的是钛,并且在视图之间移动时 touchstart 事件似乎没有触发。

举个例子,假设我的页面上有一个按钮。该按钮有一个 touchstart 事件,例如,使它变大两倍。现在,如果我直接触摸按钮,那么万岁!按钮是两倍大。

但是,如果我触摸屏幕上的其他位置(例如在背景上),然后将手指拖到按钮上,那么按钮不会变大。事实上,什么也没有发生。

钛处理视图之间的触摸事件的方式是否存在问题?我是否打算设置或重置一些值以使其发生?

干杯!

4

1 回答 1

0

I wouldn't have thought touchstart would have worked that way myself. Touchstart to me would be the location that I initially started touching. If you are dragging down to the button, I would expect that to be a drag event at that point and the touchstart was already over. Have you tried handling the touchmove event as well?

于 2012-10-22T12:55:08.383 回答