Commit 2c5c1d25 authored by Mario Botsch's avatar Mario Botsch
Browse files

improve cursor hiding for pen events

parent 0373e88d
......@@ -1213,11 +1213,12 @@ let RevealWhiteboard = (function () {
switch (pointerMode(evt)) {
case ERASER:
clearTimeout(hideCursorTimeout);
if (evt.pointerType == "mouse") {
showCursor(eraserCursor);
} else {
if (evt.pointerType == "pen") {
clearTimeout(hideCursorTimeout);
hideCursor();
} else {
clearTimeout(hideCursorTimeout);
showCursor(eraserCursor);
}
eraseStroke(evt);
return killEvent(evt);
......@@ -1245,7 +1246,10 @@ let RevealWhiteboard = (function () {
switch (pointerMode(evt)) {
case MOVE:
if (evt.pointerType == "mouse") {
if (evt.pointerType == "pen") {
clearTimeout(hideCursorTimeout);
hideCursor();
} else {
showCursor();
triggerHideCursor();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment