Welcome to TalkGraphics.com
Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,921

    Default Re: Controlling the presentation with mouse scroll

    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

  2. #2
    Join Date
    Apr 2008
    Location
    Rostov region
    Posts
    84

    Default Re: Controlling the presentation with mouse scroll

    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!

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,921

    Info Re: Controlling the presentation with mouse scroll

    maksimon,
    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>
    This seems to work.

    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

  4. #4
    Join Date
    Apr 2008
    Location
    Rostov region
    Posts
    84

    Default Re: Controlling the presentation with mouse scroll

    Acorn
    Everything became much easier. Thank you!

  5. #5
    Join Date
    Apr 2008
    Location
    Rostov region
    Posts
    84

    Default Re: Controlling the presentation with mouse scroll

    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?

  6. #6
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,921

    Question Re: Controlling the presentation with mouse scroll

    Quote Originally Posted by maksimon View Post
    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?
    Untick the Web Properties > Website > Presentation website.

    Not sure what you mean by
    On one turn on, on the other turn off.
    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

  7. #7
    Join Date
    Apr 2008
    Location
    Rostov region
    Posts
    84

    Default Re: Controlling the presentation with mouse scroll

    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.

  8. #8
    Join Date
    Apr 2008
    Location
    Rostov region
    Posts
    84

    Default Re: Controlling the presentation with mouse scroll

    Quote Originally Posted by Acorn View Post
    Untick the Web Properties > Website > Presentation website.
    Acorn
    On each page separately.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •