Select to view content in your preferred language

ZoomEnd and MouseWheel: Double Event

803
0
02-25-2014 05:23 AM
GlenReid
Deactivated User
I want to know when a zoom event happens that isn't completed by the mouse wheel. 

I know what the active tool is and event listeners on the map:

map.addEventListener(ZoomEvent.ZOOM_END, zoomEndHandler);
map.addEventListener(MouseEvent.MOUSE_WHEEL, mouseWheelHandler);

private static function zoomEndHandler(event:ZoomEvent):void {
 if ((ToolManager.currentActiveTool == "zoomin") || (ToolManager.currentActiveTool == "zoomout")) {
  trace ("*** TRACK EVENT: gis tool zoom");
 }
}

private static function mouseWheelHandler(event:MouseEvent):void {
 trace ("*** TRACK EVENT: gis tool mousewheel");
}


Easy when the active tool is not "zoomin" or "zoomout", but when the active tool is say "zoomin", I'm having a hard time figuring out how to differentiate between the two.

Thoughts?

Thanks,
Glen
Tags (2)
0 Kudos
0 Replies