map.js
/*
 * Handler for mouse move event. Pans the map.
 */
Handler for mouse move event. Pans the map.
Handler for mouse move event . Pans the map .
function mouseMove(event) {
	if (isMouseDown) {
		event.preventDefault();
		viewport.x = oldViewportOrigin.x + (event.clientX - clickPosition.x);
		viewport.y = oldViewportOrigin.y + (event.clientY - clickPosition.y);
		draw();
	}
}
function mouseMove ( event ) { if ( isMouseDown ) { event . preventDefault ( ) ; viewport . x = oldViewportOrigin . x + ( event . clientX - clickPosition . x ) ; viewport . y = oldViewportOrigin . y + ( event . clientY - clickPosition . y ) ; draw ( ) ; } }
Handler for mouse move event.
Handler for mouse move event .