Reputation: 2264
How to listen to double click event from Autodesk forge? I am trying to bind the logic into the double click and zoom event. May I know which event shall I listen to
Upvotes: 0
Views: 449
Reputation: 5342
The easiest way would be to implement the ToolInterface
- see here for details:
this.handleDoubleClick = function(event, button) {
console.log('-------------------');
console.log('Tool:handleDoubleClick(event, button)');
console.log(event);
console.log(button);
return false;
};
Alternatively subscribe to the double clicks on canvas instead:
viewer.canvas.addEventListener('dblclick', e=> {
//do stuff here
});
Upvotes: 1