We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

get event property puzzle

Home › Forums › Bug Reports and Feature Requests › get event property puzzle

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17733
    scalare
    Customer

    Hello Verge3D team!

    We’ve noticed something that may be a bug today. We were using the get_event_property puzzle to get the values of pageX and pageY and identify the exact location of a mouse click. That worked just fine, but we were monitoring mouseup event for that, and we discovered that it wasn’t working in the case of mobile, where we should be using touchstart and touchend instead.

    The problem is that when we tried it with touchend, the values for pageX and pageY return NaN, as if the puzzle wasn’t implemented for mobile. Is that the case, or is there a limitation with the mobile technology that does not provide those values? If it is not a limitation, any chance this could be solved in the near future? :)

    Thank you!

    #17738

    Yes, it works differently with touch events. See for example here. I agree that we should solve this in the future.

    Chief 3D Verger | LinkedIn | X

    #88729
    xeon
    Customer

    Wondering if this was ever fixed and I just missed that thread or is it something that will not be addressed?

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #88731

    Hi,

    Actually, this was supported long time ago by introducing the “touches” event. Here is a basic snippet that works on both desktop and mobile devices:

    handling mouse and touch events with Puzzles

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.