Skip to content

Commit 46a806f

Browse files
committed
Fixes #155: Removed wrong mouseover and mouseout events on the xml3d element when transitioning between the empty canvas and a picked object
1 parent 5379ae8 commit 46a806f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/renderer/renderer/events/mouse.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -229,23 +229,13 @@ MouseEventHandler.prototype = {
229229
this.dispatchMouseEvent(this.createMouseEvent("mouseout", {
230230
clientX: pos.x, clientY: pos.y, button: evt.button
231231
}), this.lastPickObj);
232-
if (!curObj) { // Nothing picked, this means we enter the xml3d canvas
233-
this.dispatchMouseEvent(this.createMouseEvent("mouseover", {
234-
clientX: pos.x, clientY: pos.y, button: evt.button
235-
}), this._defaultTarget);
236-
}
237232
}
238233
if (curObj) {
239234
// The mouse is now over a different object, so call the new
240235
// object's mouseover method
241236
this.dispatchMouseEvent(this.createMouseEvent("mouseover", {
242237
clientX: pos.x, clientY: pos.y, button: evt.button
243238
}), curObj);
244-
if (!this.lastPickObj) { // Nothing was picked before, this means we leave the xml3d canvas
245-
this.dispatchMouseEvent(this.createMouseEvent("mouseout", {
246-
clientX: pos.x, clientY: pos.y, button: evt.button
247-
}), this._defaultTarget);
248-
}
249239
}
250240

251241
this.lastPickObj = curObj;

0 commit comments

Comments
 (0)