Commit 69b73931 authored by Sebastien Jourdain's avatar Sebastien Jourdain Committed by Code Review

Merge topic 'vtkweb-add-interaction-event' into master

44ea875c Add Web event for viewport interaction
parents 0f37d1f3 44ea875c
......@@ -80,6 +80,7 @@
action: 'up',
current_button: current_button
}));
renderersContainer.trigger('endInteraction');
} else if(event.type === 'mousedown') {
current_button = event.which;
......@@ -92,7 +93,7 @@
current_button = 2;
event.altKey = false;
}
renderersContainer.trigger('startInteraction');
renderersContainer.trigger($.extend(event, {
type: 'mouse',
action: 'down',
......@@ -636,6 +637,18 @@
statisticManager.reset();
statContainer.empty();
}
/**
* Event triggered before a mouse down.
*
* @member vtkWeb.Viewport
* @event startInteraction
*/
/**
* Event triggered after a mouse up.
*
* @member vtkWeb.Viewport
* @event endInteraction
*/
};
// Attach config object to renderer parent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment