mirror of
https://github.com/moku-project/Moku.git
synced 2026-06-13 09:19:56 -05:00
fix: add wheel and touchmove to idle activity listeners
This commit is contained in:
@@ -161,11 +161,15 @@
|
||||
document.addEventListener('mousemove', onActivity, true)
|
||||
document.addEventListener('keydown', onActivity, true)
|
||||
document.addEventListener('touchstart', onActivity, true)
|
||||
document.addEventListener('touchmove', onActivity, true) // sustained touch-scroll in reader
|
||||
document.addEventListener('wheel', onActivity, true) // mouse-wheel / trackpad scroll in reader
|
||||
document.addEventListener('click', onActivity, true)
|
||||
return () => {
|
||||
document.removeEventListener('mousemove', onActivity, true)
|
||||
document.removeEventListener('keydown', onActivity, true)
|
||||
document.removeEventListener('touchstart', onActivity, true)
|
||||
document.removeEventListener('touchmove', onActivity, true)
|
||||
document.removeEventListener('wheel', onActivity, true)
|
||||
document.removeEventListener('click', onActivity, true)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user