Skip to content
Snippets Groups Projects
Commit 9a244bf0 authored by Richard Alam's avatar Richard Alam
Browse files

- prevent NPE when getting cursor updates when the window hasn't completely init yet

parent 95787e3f
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,8 @@
}
}
private function onUpdateCursorEvent(event:CursorEvent):void {
private function onUpdateCursorEvent(event:CursorEvent):void {
if (cursor == null) return;
cursor.x = ((event.x/video.videoWidth)) * videoHolder.width;
cursor.y = ((event.y/video.videoHeight)) * videoHolder.height;
cursor.visible = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment