使用 Magic Mouse 和 iPhone Simulator 的触摸事件

发布于 2024-08-19 00:39:29 字数 227 浏览 3 评论 0原文

我观察到,使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

太阳公公是暖光 2024-08-26 00:39:29

这实际上是所有具有滚动功能的 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 :-/

烟花易冷人易散 2024-08-26 00:39:29

我相信,基于手势的滚动 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文