Skip to content

Commit d465fee

Browse files
committed
Make selecting easy on mobile
1 parent b1b2089 commit d465fee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@
363363
height: 100%;
364364
opacity: 0;
365365
cursor: text;
366+
touch-action: none;
366367
}
367368
#row-num {
368369
position:absolute;
@@ -2577,7 +2578,7 @@ <h3>設定</h3>
25772578
setTimeout(()=>{document.getElementById("cursor-input").focus();}, 10);
25782579
});
25792580
sensor.addEventListener("pointermove", (e)=>{
2580-
if (e.buttons & 1 > 0) {
2581+
if ((e.buttons & 1) > 0) {
25812582
let pos = getCursorPos(e.offsetX, e.offsetY);
25822583
console.log(e, pos);
25832584
select((selecting?selection:cursor_pos).slice(0, 2), pos);

0 commit comments

Comments
 (0)