Apply changes for v11 compatibility (#277)
This commit is contained in:
@@ -133,8 +133,8 @@ export function onMouseMove(event) {
|
||||
|
||||
// Extract event data
|
||||
const destination = {
|
||||
x: event.data.destination.x + this.rulerOffset.x,
|
||||
y: event.data.destination.y + this.rulerOffset.y,
|
||||
x: event.interactionData.destination.x + this.rulerOffset.x,
|
||||
y: event.interactionData.destination.y + this.rulerOffset.y,
|
||||
};
|
||||
|
||||
// Hide any existing Token HUD
|
||||
@@ -148,7 +148,7 @@ export function onMouseMove(event) {
|
||||
function scheduleMeasurement(destination, event) {
|
||||
const measurementInterval = 50;
|
||||
const mt = event._measureTime || 0;
|
||||
const originalEvent = event.data.originalEvent;
|
||||
const originalEvent = event.interactionData.originalEvent;
|
||||
if (Date.now() - mt > measurementInterval) {
|
||||
this.measure(destination, {snap: !disableSnap});
|
||||
event._measureTime = Date.now();
|
||||
|
||||
Reference in New Issue
Block a user