No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Q-slider delay before reacting to model change

    Help
    2
    3
    202
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jkao last edited by jkao

      I am using q-slider widgets as a fader to control the volume of a devices remotely over a websocket.

      When dragging the slider with the mouse, the behavior works great and the update lag is imperceptible.

      I recently updated my app so that I can use WebMIDI and use physical faders to update the model of the q-sliders using MIDI controls.

      In this configuration, when a MIDI control is changed, both the label and the watch(), which triggers the websocket both react very quickly, with imperceptible lag.

      However, the visual position of the sliders themselves are slow to react and appear to have some kind of easing behavior that makes them react in a delayed way. I notice the q-slider demo in the documentation appears to behave the same way when two sliders are bound to the same model. When one slider is moved, the other slider is delayed in its reaction.

      Is there a way to control the delay in animating the position of the slider itself in order to make them respond with less delay when model changes occur?

      I 1 Reply Last reply Reply Quote 0
      • I
        Ilia @jkao last edited by

        @jkao That is more the animation rather than the delay on the second slider, but if you really need the delay in the model change, you can try to use debounce?

        https://quasar.dev/quasar-utils/other-utils#Debounce-Function

        Haven’t checked that, but feels doable with debounce 🙂

        1 Reply Last reply Reply Quote 0
        • J
          jkao last edited by

          Actually, I’m looking for a way to reduce the animation delay so that the q-slider more quickly represents the position of the physical MIDI fader.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post