Forum

    • Register
    • Login
    • Search
    • Categories

    event.drag has a "dead zone"

    General Questions
    9
    21
    712
    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.
    • ustk
      ustk last edited by ustk

      Hi,

      I have an issue when dragging a panel with event.drag (not allowDragging property)

      The panel is moving as I want, but you always need to "unstick" it from its position before it moves.
      There is a "dead zone" of 5px that you need to pass when dragging, otherwise, the panel sticks to its position.
      it is the same when coming back to the starting point, like if the panel is hitting something 5px ahead, both in X & Y...

      What is even more strange is that it doesn't do that with the allowDragging property...
      can I do something so I can have precise movement?

      Here's a quick snippet

      HiseSnippet 874.3ocsVs0aSCCE1oaFQKTIPBwC7jEOfZEio1w3hzDBXsaPErQDEPaOgbSbaslicjiyFEz9Oy+fwwwIKoiRE8g4Gp74xmymO2b80p.VRhRi7p+kYwLj2swCmIMS6MkxknA8Qd2GCNP4jXpjIHgZ5jIb4DztyhoIIrPjm2Zuy5qW80QYqe+5coBpLfUpBg9lhGv9HOhaJ05+lOvEh8ogruvip381uYPfR1SITo.uVC2AESCNgNgcH05VMLx6F6ExMJ8PC0vRPdquqJb1vopyjN++FOgORvrBcQCgCxodekHzxXqVTuobQnew8OAAmheYzXMWz3d3C3g7K0WFUtSlARIhpwCuZKidcqRuN++zyqB8V2Qu6hGFn4wlRKVtcK7.ogoGSgTPUZ47EUyuFtmB7PZ1LhdBaeMHbIhVc6zYCB7S6cZ1nYCHQjXHmR0Dea9uK4UjBrSXldpnXkDDZ8Pm4G5P4D1LgYNPklv5QEhQPJr03TYfgqjsXmBfZ+qlMH4qrM7wDmkMskYUMWtyREI6ri.hj+U.d7NgZDUrYrJgaO9iHOlTdNGsyUAe7x.e7bfOdmqvQ6p754mCpkkRaboC+0x9QWh4m0YoFa6tAm23716TDBIJ4gJC6SxVsa7qF0abdiqZY73EYxl8zJgfoWjUaindIvZISiFwza.QRQJqvOndb9Bd7+tfuZ+XfqRphiJ4.I27oXl7e0FfxK+fcecPepgZ6Lx0A9EyzFtkBd8YmBibb8I0w8YImXTwY9lWyBMJlLqMK5hroUDG5UtI1khQ+n5LrYUENiGZlB2Tus.goL9jolBInZWcVQMOPkGf6I3vtMHuWcJSSdDoewTzQJcHS+YZHOMo5o6zOj+y4FhxMrnhwh0uABcwEyqcqppQ+83BXnkJLUPMyOIyN9N2.jrmajgcrfDJwmUc790x3s+W5dWrO2DLcw7s1B3KTebcy27GKZh2a7XVfojrqi2+nq+WFPeVkZfpoCnFMGpXwGlFMDJGBX.SjPcrsizqls2wI2wJaiLCYxvLgKfUtwtVYubicKLhhnAZ02CbiArOGcyLM.mjYuJWGefUlzEkMZvw6H3MxuGDXCDOAX9hQr0Ji3oqLhsWYDOakQ77UFwKVYDubIHr+gj2lZTQt1BPg+dYCH871SRgpprNDze.5cxmkC
      

      Tired to press F5 in the forum...
      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

      1 Reply Last reply Reply Quote 0
      • ustk
        ustk last edited by

        No idea of what I can do? It is very annoying as I need precise settings…

        Or, another way would be using the allowDragging property, but I can't find a way to disable the property on the fly. It doesn't work with a JSON property change inside an event in a mouse callback, and I don't think it is the good way to proceed anyway…

        Cheers

        Tired to press F5 in the forum...
        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

        1 Reply Last reply Reply Quote 0
        • dustbro
          dustbro last edited by

          yeah... there's something a little sticky in the top left corner. Doesn't happen on the Canvas, but exists on the Interface preview

          Dan Korneff - Producer / Mixer / Audio Nerd

          1 Reply Last reply Reply Quote 0
          • ustk
            ustk last edited by

            Yes in fact this zone moves wherever the new panel position is, so you can never replace the panel at its origin

            Tired to press F5 in the forum...
            Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

            1 Reply Last reply Reply Quote 0
            • ustk
              ustk last edited by

              event.drag doesn't trigger before reaching a displacement of 5px

              simply attaching a variable to event.drag shows it goes from 0 to 5 with no transition
              and 5 to -5 in the other direction which makes a 10x10 dead square 🤔

              Tired to press F5 in the forum...
              Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

              1 Reply Last reply Reply Quote 0
              • Christoph Hart
                Christoph Hart last edited by

                There‘s a threshhold to distinguish mouse clicks from drags, so most probably you‘re hitting this. Has this a real world implication?

                1 Reply Last reply Reply Quote 0
                • ustk
                  ustk last edited by

                  Thanks Christoph,

                  Yes I am using the movement of a panel for controlling parameters, like frequency, gain, and Q (for the latter, the panel stops via event.ctrlDown) so the "dead zone" is critical, and moreover, you can't go back at the starting point, so it makes any setting quite difficult.

                  I just tried by the mean of the allowDragging property, and it is the same...
                  I mean, the panel moves smoothly from the first pixel, but the movement detection still has a 5px threshold due to the event.drag in the mouse callback

                  Tired to press F5 in the forum...
                  Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                  1 Reply Last reply Reply Quote 0
                  • ustk
                    ustk last edited by

                    alt text

                    Tired to press F5 in the forum...
                    Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                    orange 1 Reply Last reply Reply Quote 1
                    • orange
                      orange @ustk last edited by

                      @ustk Very cool looking eq curve. This is a cool way but I think it's time to use GUI functions of the parametric eq unit in HISE GUI editor. @Christoph-Hart ? HISE need this

                      1 Reply Last reply Reply Quote 0
                      • ustk
                        ustk last edited by

                        That's right it would be very cool

                        I am thinking to another use of moving the panels, so it would be cool to have the option to remove this threshold

                        Tired to press F5 in the forum...
                        Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                        1 Reply Last reply Reply Quote 0
                        • ustk
                          ustk last edited by ustk

                          @Christoph-Hart I'm coming back on this "issue"
                          The dead zone of 5 pixels when dragging into a panel is still annoying because you cannot make small adjustments, for instance, with a vector knob.
                          The value doesn't change, then jumps once you've reached 5px in X or Y.
                          This dead zone stays active when you come back on this 5px square without releasing the click and add 5 more px the other way. This creates a 10px "glitch like" behaviour where you have no possibility to come back at the starting value.

                          I know this allows to differentiate a click from drag, but it is so annoying with knobs, and even more with graph EQ like above...

                          5pxDeadZone.gif

                          Tired to press F5 in the forum...
                          Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                          1 Reply Last reply Reply Quote 0
                          • Fortune
                            Fortune last edited by

                            New Draggable Filter Panel floating looks very good and usable, thanks @Christoph-Hart

                            • Can we disable adding new nodes by the user or limit the number of the nodes?

                            • Can we link each node to a panel (I will make panels that contains Q, gain, type, freqq knobs for each nodes) So when the user click the node, it will make dedicated panel visible. I thought that because we can't adjust q value from this floating tile.

                            alt text

                            1 Reply Last reply Reply Quote 0
                            • S
                              Steve Mohican last edited by Steve Mohican

                              I made this but the node does not matched unfortunately; @ustk @Christoph-Hart @d-healey @orange @ulrik

                              HiseSnippet 2106.3oc2Y80baabDGTRvIhoxw4OSlN8oKZZ6.FIQQPKm3F2NFVThNZhjEqnrbx3wiGHfij2HPbv.fxh0QS6L8k1OB4M+RmoeE5S0eG5W.2uA449hyt2Q.bfBRlR0VMS4HSIr2t29a+ys6dvsB4NznHdnVoY2cX.UqzOSu8P+3dM5Yy701XMsRk0269OdKZLMTa0gA1QQTWsRkl9t35klcFMwme31qZ6Y66PyHoosGm4P2j0mEmQsk0Wy77ZZ6R2k0Wg6Ur1vg62f6wG.XYZ8ZZA1NGX2kdOajsoz0Jck0cYw7v1w1wzHsRyrJ2cX6d7m5K4eOVDaeOJ9foVaXijjax8bQDiT0Zzi441JwlizzJo2JyCLszC7w5awbYozy7DWSr.ISBU+QooNK3YpBuZSN7Jo.uYjv6Cza6DxBhyVAw16ougODh5XCg.UXI4Uap+yUzavAN7iq129.ZyP3gTILtYsZKRV4F0pbq4JOWYHPDESNzNjf1KJVH2yiFZR9cDQxQ0tz3s3tC7rAC1XdgWQgs4ws4z1j5S1lTerM4a91V1ts78.oSrCP9F79Abe3Ai4SXX9wsgV1gPJTbH6Iq+6yYAq2oC0AjLGCmP7C746GAh8vGIVnCOjXvfmqcKBi7aI0gesvBUlq7ylqLA9HX+grGcp37qAFleAC1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0g+6amw+e4eY0W8pAqXcdzbcEM+x9mOMCpJuleg1IGeFFhOYnS0I6w5fiV.pojaDZbLY+HV7PU89VYb+IEtefdKVrSuhw6TEfWrbzaY7N5xSyoKGqNCryn27atn2Tp3KxU60cSoxIE2ZLH7P55OQfi2WO2Q+bP5dC5Kq5fcGJgEQvte0F4.svhpHAS0RzHg54uAru60GmvJYDtlUyl6ttOVhS5GlNueX5IyOTPXPNzeWXJtPFVJFLm1voeGJDE7gJVBqZJrDf74ZIkSaSEVonR5qFsnYhK.WzLYQ0P8Ukt22SuMLPk35TBG7mHdl7.6Coj6R8ogXRq4o8RCd92+8+iI8kFDLwuzfschA0uKLJaT.ORsRw+rMsOaWnJTjp1teDEm2ZG7TjJ8Fb6vBW5GtcSvHKTl11wCBEGGuSe9.+3bG+l9+xb9Be6.y7S5WdwkWw2omL3VfGbpVm3EfcMHMtefGcc+CodvXSBL9gvbRcrG3EmPMed8VbedPOtOyQMnuCVqoaWZnJ1Kzffoysw94IT9XqcndTa0D3eo0lPhmcH3mnWPewYWEon20TgwqettDtD7vH4mTMMGUYRWeylaOJ2B9KRpQX95v3KuMdzd.02Iin0JVXomMTlrfYgU45vC6OpSSZI9MocAEoZz6Rggefpj4RMZ2mygq5hyOmVP6428e+QVax4Ao8Hx1jV8fjA4swxUlZPTLueBVDulz1vPRxAfen9muRU3SmEvu+MMfut91uYdV6MWV2TSXV2GIhjogLLldYVnnfwKjUTytz5nBEi+1Pe8nDZBsqs.FpkIfo+iUSBzzx1z6Itna5Z+oGXISnx2djYMpn0dpWu7ucimZksSBEKyW9U50E4KJeNbr3+S19MWjW6bE3SOV9+x.+rmm.e8KRfWS6sVf+4Ge0O05RO5clWUY5+O5pJmCnbYLt9kgN5a6DxeriL4DOq7tBJfc6K9OsaV8svmIoueKc8ZUqo0GNm7XGGzcuD3eJVl5W.Yt9EPlUt.xbiKfLe9EPlu3BHyMOSYvRT2Y.Lxf7nHPn05xh+kTtXp1OhORhfx
                              
                              ustk orange 3 Replies Last reply Reply Quote 0
                              • ustk
                                ustk @Steve Mohican last edited by ustk

                                @Steve-Mohican Because the value you handle shouldn't be linear but logarithmic.

                                Tired to press F5 in the forum...
                                Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                                1 Reply Last reply Reply Quote 0
                                • ustk
                                  ustk @Steve Mohican last edited by ustk

                                  @Steve-Mohican I've made my own GraphEQ a few months ago before @Christoph-Hart made the curve EQ accessible.
                                  If I knew at that time I wouldn't go through all this pain 😬 But I learned so much!

                                  ezgif.com-video-to-gif-2.gif

                                  Tired to press F5 in the forum...
                                  Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                                  ulrik DanH 2 Replies Last reply Reply Quote 4
                                  • ulrik
                                    ulrik @ustk last edited by

                                    @ustk that's really good looking!

                                    Hise Develop branch
                                    MacOs 12.4, Xcode 13.0
                                    http://musikboden.se

                                    ustk 1 Reply Last reply Reply Quote 0
                                    • ustk
                                      ustk @ulrik last edited by

                                      @ulrik Thanks 😉

                                      Tired to press F5 in the forum...
                                      Studio427 Audio - Audio Instruments & FX Plugins for music production. Website - Facebook

                                      1 Reply Last reply Reply Quote 0
                                      • orange
                                        orange @Steve Mohican last edited by orange

                                        @Steve-Mohican

                                        Yeah you can use logaritmic or other non-linear equations for this kind of implementations. Here is my method, I used a "Hyperbolic Decline Equation" method for the frequency cordinates.

                                        Cheers 😉

                                        HiseSnippet 2270.3oc2Y07aabbEeojWaK5p7QgKPPALvTghhkVjT6tjTTr1ElRhTQBIxhUT0IAFFFq1cH4.sbG58CIw3XfbL8TOzK9OGeonG5k.zS8T8eAE9dOn7lY3xcVJZIFAXijPCKw48wLu2u27dyaF0xmZiCBn9JYV3fgCvJY9UpsG5E1aydVDOkcZ.zUa9rm5QcvJaLbfUP.1QISl4+TF6LKbME9m27fMrbs7rwIjTTdDkXi+bReRXB0V0+Lhq6VVN3CH8kjtb8crodaRcoQfoLuptx.K6ir5henESr4TUxb8lNjPpe6PqPbfRlqsA0YX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ZCkGrwPTvCppw8p4XU+Di0YiYlTaL2KUy.MHb1HlFwP.ioQLS4Psp.dypN93CwSKMtLeJrciHXCwDsK7p5s7gtjvmLJPkjV8yUL41BO4Vpeg0wX9aXwAkeCebGpeezmhgJRr7XiK3AR+9Y8ARGLyOP5d1gfIbfukGbcs.rg7LOAOSYdMvgQdoEWPJkTL2aKv8jj6l0iIZJSDNeM0jAiSMS6Rjpq+5GHRTZiAuwYu.avYYXm7dkVQvcR4uZhgrhIjMkIO4NqYrpS5yEjj+mcOR76uyBme1L2K4crWH1FaS5OvE2z6XrKbKKtM9qgqU0wJxMLlZ5bpcodzA8ndDa4MX6yJ82sKN0lno5PqGFZwZAKlxsquO1EaEHkm86q+4PGFV96x9Cdb0vBiYGKtn30mnJLWDqP.5WF8vL+uf5g4cQFJTq7m.Q52GGw99XM5aY6Seps3EgXod2jSA7aO9eUwET2kMFM9cjTU0KpqzGJf+Taa1tiB.9LccLuB5T5JnS4qfNUtB5r5UPmpWAcV6B0gc145Qgz9h8+.gVMEu.QFoFrU9AjroNXE
                                        
                                        C 1 Reply Last reply Reply Quote 2
                                        • C
                                          clumsybear @orange last edited by

                                          @orange said in event.drag has a "dead zone":

                                          you can use logaritmic or other non-linear equations for this kind of implementations. Here is my method, I used a "Hyperbolic Decline Equation" method for the frequency cordinates.

                                          I have a question regarding the non-linear equation. As I understand, the non-linear equation is using the knob values as coordinates to map them to the logarithmic frequency response of the Curve EQ. So, if the user is trying to automate the knobs, the values would not correspond to the actual frequencies in Hz, right?

                                          How can we show the actual frequencies, not the linear coordinates?

                                          orange 1 Reply Last reply Reply Quote 0
                                          • orange
                                            orange @clumsybear last edited by orange

                                            @clumsybear Yeah the real values won't show up in DAW's automation track, but on the plugin GUI, you can show the corresponding value in a Label (with using the same equation)

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

                                            16
                                            Online

                                            794
                                            Users

                                            5.5k
                                            Topics

                                            51.6k
                                            Posts