HISE Logo Forum
    • Categories
    • Register
    • Login

    Mouse event of DraggableFT with attachToComponentMouseEvents

    Scheduled Pinned Locked Moved General Questions
    2 Posts 2 Posters 70 Views
    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.
    • JulesVJ
      JulesV
      last edited by JulesV

      Maybe it's intentional, but I can't get the mouse position correctly in event.x and event.y, it always gives negative values. I also tried event.dragX, event.dragY even mouseDownX and mouseDownY, but I couldn't figure it out.

      Can anyone help with mouse events for a positioning like the one below?

      HiseSnippet 1379.3ocuW0zaaTDFd1jrk3sszVQEhKHMxmVWRC6lDGmBTgabroVsI0sNzVTUUY7tisGk0y3t63jZZiTEW4OA242.hdgeAbi6fD23NGBuyr6ZuaRTo0BHxJxyy6Gyy7NueLtUnviFEIBQFV6NdHEYbNy1i4x905SXbTysPFuq41jHIMDGCs43gjnHpOxvX9uPAXTXAj9u+7y2jDP3dzoPHz8ELO5sYCXxonspdKVPPChOcW1fLZuV0ldBdMQfXDvm4McPCId6Q5Q2gnTaNSzMIQ8QFWwbc+tj08qT1wkt5F9UVwsR4qsVk0cb55ugakNU5rJwmrdEGjwYp6yjhv1RhjFANcSg+318EGvi2f6yhXcBnpEtn1vNGCip0mE32JM3DgPFKzZZnZ93P0kM2l4ylfOMjcQs.7TKxFzLl60QI22BJYjgRKDSoKY11KjMTNUhhOm0rIGtA6Rf6lrTIVWzb+v7l0DfFb4xCH6QaDBKlXg8ZkcVBupiSoO0xBtehj38Ig3VDNMvEecbpk8nxZhACEbXgcwXwEAaxZRHbQJCYOs9cUVpSzT1UuaWpm1nLJnr0JcGGxCd.XQrWUlXW7.lur+zM.z3lGSi9TVu9xb9QQCeVzv.x3GPjd8gz5qiqy6w3zk8BovMxlgBhumNi294VXbQlewOAWLuQEWRIgD1KBj8nhdom6hKgKR2W8kGq0PRh03wVGpXQdmrLQJId82ULIrssXTDstx9H6GUrQffHY7d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      

      proccccc.gif

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

        @JulesV The problem is that the different positions the event object holds are related to the node when you hover it, and the whole tile when not on a node...
        This makes the tracking impossible. There might be another solution that would allow to discriminate if on a node or not, but I am not aware of...

        Or do the same as for the y position, using the frequency from the module that you convert to a 0-1 position then multiply with the FoaltingTile witdth

        Can't help pressing F5 in the forum...

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

        14

        Online

        1.7k

        Users

        11.8k

        Topics

        102.7k

        Posts