metamaps--metamaps/frontend/src/Metamaps/Mouse.js
2017-03-22 19:20:10 -04:00

18 lines
374 B
JavaScript

const Mouse = () => {
return {
didPan: false,
didBoxZoom: false,
changeInX: 0,
changeInY: 0,
edgeHoveringOver: false,
boxStartCoordinates: false,
boxEndCoordinates: false,
synapseStartCoordinates: [],
synapseEndCoordinates: null,
lastNodeClick: 0,
lastCanvasClick: 0,
DOUBLE_CLICK_TOLERANCE: 300
}
}
export default Mouse