Skip to content

Commit ed402d9

Browse files
committedJul 8, 2015
fix regression caused by neko specific fix
1 parent 783e92c commit ed402d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎cocktail/port/platform/flash_player/MouseListener.hx

+4-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ class MouseListener extends MouseListenerBase
195195
var mouseEvent:MouseEvent = new MouseEvent();
196196

197197
var localPoint:Point = new Point(typedEvent.localX, typedEvent.localY);
198-
localPoint = _platform.convertToHitTestingSpriteSpace(localPoint, event.get_target(), _platform.hitTestingSprite);
198+
#if neko //https://github.com/silexlabs/Cocktail/commit/ea1545d0f2f9c394f07267d912cc289f5f6fbfab
199+
localPoint = _platform.convertToHitTestingSpriteSpace(localPoint, event.target, _platform.hitTestingSprite);
200+
#else
201+
#end
199202

200203
//use local x and y for mouse event, as they should be relative to hit testing sprite which represents
201204
//the viewport of the document

0 commit comments

Comments
 (0)
Please sign in to comment.