使用 Magic Mouse 和 iPhone Simulator 的触摸事件
我观察到,使用 iMac 魔术鼠标,同时使用 iPhone 模拟器,如果:
a) 活动视图在 iPhone 屏幕中央有一个能够生成触摸事件的对象,并且 b) iMac 操作员意外地或以其他方式以通常用于滚动的方式在魔术鼠标表面上拖动手指,
中心的对象会生成(虚假的)鼠标按下和拖动事件。
如果屏幕中央没有这样的物体,则没有问题。
有没有办法以编程方式或以其他方式禁用此功能?
I observe that with the iMac magic mouse, while using the iPhone simulator, if:
a) the active view has an object in the center of the iPhone screen which is capable of generating touch events, and
b) the iMac operator accidentally or otherwise drags their finger(s) across the magic mouse surface in a way which would normally be used for scrolling, that
the object in the center generates (bogus) mouse down and drag events.
If there is no such object in the center of the screen, there is no issue.
Is there a way to programmatically or otherwise disable this feature?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这实际上是所有具有滚动功能的 Mac 输入设备的问题。如果您用两根手指在 Macbook 触摸板上上下滚动,也会发生同样的情况。
我相信这或多或少是“有意的”,尽管触摸事件似乎丢失了 - 所以有时界面会在滚动手势后卡住。不幸的是,我不知道如何以编程方式禁用此功能:-/
This is actually an issue with all Mac input devices with scroll functionality. If you do a two-fingered scroll up and down on a Macbook touch pad the same thing happens.
I believe this is more or less "intended", though it appears the touch up event is lost - so sometimes the interface gets stuck after a scroll gesture. I don't know of a way to programmatically disable this feature, unfortunately :-/
我相信,基于手势的滚动 iOS 模拟器在 iOS 4 或 iPad 上有时被禁用。它会与在较小屏幕上运行的 iOS 模拟器的巨大滚动窗口发生冲突。
Gesture-based scrolling the iOS simulator was disabled sometime around iOS 4 or the iPad, I believe. It would have conflicted with the giant, scrolling window of the iOS simulator running on smaller screens.