possible fix for laptops with touch screens and mouse input
This commit is contained in:
parent
9fd1952121
commit
99f7d1811b
1 changed files with 5 additions and 0 deletions
|
|
@ -485,6 +485,11 @@ CAM.init = function(kiri, api) {
|
|||
}
|
||||
};
|
||||
el.ontouchmove = onDown;
|
||||
el.onmouseenter = (ev) => {
|
||||
el.onmousedown = onDown;
|
||||
el.onmouseleave = onLeave;
|
||||
onEnter(ev);
|
||||
};
|
||||
} else {
|
||||
el.onmousedown = onDown;
|
||||
el.onmouseenter = onEnter;
|
||||
|
|
|
|||
Loading…
Reference in a new issue