Commit ae7e206
authored
Refactor touch event listeners to prevent page scrolling on touch move (#378)
* Refactor touch event listeners to prevent page scrolling on touch move
Updated touch event listeners to use passive options and prevent default behavior on touchmove.
* Enhance touchmove event handling
Added stopImmediatePropagation to touchmove event.
* Set canvas fill style to red before drawing
* Fix escape characters in fill_style assignment
* Update offscreen_canvas.ipynb
* Simplify touchmove event listener
Refactor touchmove event listener to simplify event handling.
* Update offscreen.ts
* Update offscreen_canvas.ipynb
* prevent defaults1 parent c77d005 commit ae7e206
2 files changed
+29
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
171 | 175 | | |
172 | 176 | | |
173 | 177 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1377 | 1377 | | |
1378 | 1378 | | |
1379 | 1379 | | |
1380 | | - | |
| 1380 | + | |
| 1381 | + | |
1381 | 1382 | | |
1382 | 1383 | | |
1383 | | - | |
| 1384 | + | |
| 1385 | + | |
1384 | 1386 | | |
1385 | 1387 | | |
1386 | | - | |
| 1388 | + | |
| 1389 | + | |
1387 | 1390 | | |
1388 | 1391 | | |
1389 | | - | |
| 1392 | + | |
| 1393 | + | |
1390 | 1394 | | |
1391 | 1395 | | |
1392 | | - | |
| 1396 | + | |
| 1397 | + | |
1393 | 1398 | | |
1394 | 1399 | | |
1395 | | - | |
| 1400 | + | |
1396 | 1401 | | |
1397 | 1402 | | |
1398 | 1403 | | |
| |||
1441 | 1446 | | |
1442 | 1447 | | |
1443 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
1444 | 1451 | | |
1445 | 1452 | | |
1446 | 1453 | | |
| |||
1452 | 1459 | | |
1453 | 1460 | | |
1454 | 1461 | | |
| 1462 | + | |
| 1463 | + | |
1455 | 1464 | | |
1456 | 1465 | | |
1457 | 1466 | | |
| |||
1463 | 1472 | | |
1464 | 1473 | | |
1465 | 1474 | | |
| 1475 | + | |
| 1476 | + | |
1466 | 1477 | | |
1467 | 1478 | | |
1468 | 1479 | | |
| |||
1474 | 1485 | | |
1475 | 1486 | | |
1476 | 1487 | | |
| 1488 | + | |
| 1489 | + | |
1477 | 1490 | | |
1478 | 1491 | | |
1479 | 1492 | | |
| |||
0 commit comments