Commit Graph

20 Commits

Author SHA1 Message Date
Miroslav Šedivý
9b851aac61 use window matchMedia. 2023-04-19 12:32:48 +02:00
Miroslav Šedivý
f9417db520 add pixel ratio change listener. 2023-04-19 12:32:48 +02:00
Miroslav Šedivý
a79a5cfd39 use canvas size when clearing canvas. 2023-04-19 12:32:48 +02:00
Miroslav Šedivý
1f461cb322
Optimizing canvas for cursor rendering (#27)
* use dpr as canvas scale.

* wheel use event timestamp.

* remove vue set.

* add cursor rendering fps.
2023-04-13 12:25:36 +02:00
Miroslav Šedivý
abb28b1d10 canvas cursor draw, reset x & y before clear #9. 2022-08-30 23:02:44 +02:00
Miroslav Šedivý
9a77f6adea
Canvas cursor draw - do not use save and restore. (#9) 2022-08-25 00:14:47 +02:00
Miroslav Šedivý
cf97610067
Inactive cursors proper clearing (#7)
* extract canvasDrawPoints and use new_last_points.

* lint fix.

* canvasDrawPoints default percent 1,
2022-07-28 12:21:03 +02:00
Miroslav Šedivý
cd15007e3c
hide elements around textarea if added by browsers extensions. (#5) 2022-07-28 12:20:42 +02:00
Miroslav Šedivý
c67e6c7dc3 use session ID in cursor draw functions. 2021-11-15 19:10:12 +01:00
Miroslav Šedivý
dfd7bec140 if cursor did not move, animate only one position. 2021-11-14 19:37:12 +01:00
Miroslav Šedivý
9daa8461bb cursors add comments. 2021-11-14 19:16:19 +01:00
Miroslav Šedivý
d3fa448eb4 update cursors on canvas size change. 2021-11-12 00:05:59 +01:00
Miroslav Šedivý
a6dea31605 ignore session and host cursor. 2021-11-12 00:04:32 +01:00
Miroslav Šedivý
5b34f906c6 cancel if no cursors to animate. 2021-11-11 23:54:11 +01:00
Miroslav Šedivý
6afa3c68de canvas animate inactive cursors. 2021-11-11 23:50:35 +01:00
Miroslav Šedivý
606c9337bb set inactive cursor draw function. 2021-11-01 21:15:57 +01:00
Miroslav Šedivý
ed5d2175ae cursors use cursor tag. 2021-11-01 20:56:10 +01:00
Miroslav Šedivý
ec477f619b inactive cursors enabled from server. 2021-11-01 20:49:59 +01:00
Miroslav Šedivý
cd8d0da96a inactive cursors ignore own cursor. 2021-10-26 22:55:22 +02:00
Miroslav Šedivý
cae092fb20 session cursors (WIP). 2021-10-26 18:02:01 +02:00