Thank you for the code.
It would be better not to have to alter the prs4.js file as you need to do this every update to the design file.
Would it not be better to add the delay to the wheel event?
Acorn
Thank you for the code.
It would be better not to have to alter the prs4.js file as you need to do this every update to the design file.
Would it not be better to add the delay to the wheel event?
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
The mouse scroll events are queued and the delay in processing the scroll results only delays of all(!) wheel clicks. And it doesn't work the way you want it to.)
Try it. Maybe you can make it better. I will only be grateful!
maksimon,
This seems to work.Code:<script>var lastExecution; var sampleRate = 5 // per second addEventListener("wheel", function(event) { var now = Date.now(); if (now - lastExecution < 1000/sampleRate) return; lastExecution = now; if (event.deltaY < 0) { xr_prev(); } else if (event.deltaY > 0) { xr_next(); } }, false); </script>
Thank you for the concept.
Acorn
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
Acorn
Everything became much easier. Thank you!
Tell me, is there a way to disable the ability to turn pages?
Disable even the ability to scroll through the arrows and pgup pgdown, but leave the ability to follow the links. On each page separately. On one turn on, on the other turn off. Is there any hack for this?
Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat
I will try to explain in more detail. For example: I have a 10-page presentation. I want the presentation to work as usual, BUT if I was on the third page, it was impossible to go to the fourth with the arrow keys on the keyboard.
Bookmarks