You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by yi...@apache.org on 2017/07/23 11:55:53 UTC
git commit: [flex-asjs] [refs/heads/develop] - Make flash work with
mouse wheel, JS side should be fixed to expose delta as well
Repository: flex-asjs
Updated Branches:
refs/heads/develop 9e15e5ba9 -> 2f01c3a27
Make flash work with mouse wheel, JS side should be fixed to expose
delta as well
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2f01c3a2
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2f01c3a2
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2f01c3a2
Branch: refs/heads/develop
Commit: 2f01c3a27e3c9d409c94c2a06ba39c52d4325487
Parents: 9e15e5b
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
Authored: Sun Jul 23 14:54:54 2017 +0300
Committer: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
Committed: Sun Jul 23 14:54:54 2017 +0300
----------------------------------------------------------------------
.../org/apache/flex/events/utils/MouseEventConverter.as | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2f01c3a2/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
index 039d183..c07d9fb 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/MouseEventConverter.as
@@ -45,7 +45,7 @@ package org.apache.flex.events.utils
* @playerversion AIR 2.6
* @productversion FlexJS 0.0
*/
- public static const UNCONVERTED_EVENTS:Object = { mouseWheel: 1 };
+ public static const UNCONVERTED_EVENTS:Object = {};
/**
* A method used to copy properties from flash.events.MouseEvent to
@@ -61,8 +61,8 @@ package org.apache.flex.events.utils
private static function flashConvert(event:flash.events.MouseEvent):org.apache.flex.events.MouseEvent
{
- if (UNCONVERTED_EVENTS[event.type])
- return null;
+// if (UNCONVERTED_EVENTS[event.type])
+// return null;
var newEvent:org.apache.flex.events.MouseEvent =
new org.apache.flex.events.MouseEvent(event.type, event.bubbles, event.cancelable,
@@ -114,7 +114,8 @@ package org.apache.flex.events.utils
flash.events.MouseEvent.ROLL_OUT,
flash.events.MouseEvent.MOUSE_OVER,
flash.events.MouseEvent.MOUSE_OUT,
- flash.events.MouseEvent.MOUSE_MOVE
+ flash.events.MouseEvent.MOUSE_MOVE,
+ flash.events.MouseEvent.MOUSE_WHEEL
];
/**