Flex 3 - 滑块拇指上偶尔出现错误的鼠标移出事件
我的 Flex 3 应用程序中的滑块拇指通常可以正常工作,但通常它们似乎对本应是指拇指按下事件的鼠标按下变得不敏感。
事实证明,当鼠标从拇指边缘向中心移动时,就会触发 mouseOut 事件。仅当拇指处于“over”状态时,拇指才对 mouseDown 事件敏感。
我看到同样的行为: -- 显示默认拇指而不是我的自定义类 -- 使用 hitArea 精灵(我尝试了一个子 TextInput,其大小可以用 alpha 0 覆盖拇指)。
任何人都可以建议修复或解决方法吗?我可以识别出错误的鼠标移出事件,但随后不知道如何进行补偿,例如,通过重新建立“悬停”状态,或者通过对鼠标的编程控制。
谢谢, 彼得
The slider thumbs in my Flex 3 application usually work correctly, but often they seem to become insensitive to mouse downs on what should be thumbPress events.
It turns out that mouseOut events are being fired as the mouse moves away from the edge of the thumb towards the center. The thumb is sensitive to mouseDown events only when it is in the "over" state.
I am seeing the same behavior:
-- Displaying the default thumb rather than my custom class
-- Using a hitArea sprite (I tried a child TextInput sized to cover the thumb with alpha 0).
Can anyone suggest either a fix or a workaround? I can identify the faulty mouse out events, but then don't know how to compensate, for example, by reestablishing the "over" state, or perhaps with programmatic control of the mouse.
Thanks,
Peter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,我自己想出了这个办法。鼠标移出事件主要是由于路上不可见的物体造成的——这是很久以前我忘记的解决方法的结果! :-(
Nevermind, I figured this out myself. The mouse-out events are due to mostly invisible objects in the way -- the result of a workaround from long ago that I forgot about! :-(