Jump to content

GUI pointer observables functionality is different in latest version?


royibernthal
 Share

Recommended Posts

Was there any change lately that could affect the functionality of GUI pointer observables?

I attached the log of the event bubbling in Desktop and Mobile (device mode) at the pointer down event of the same button.

In desktop it starts from the last child, while in device mode it seems to skip 2 children, there are other weird behaviors in different cases, e.g. many callbacks called for different controls for the same pointer down event of the same button - I imagine they're controls nested in the pressed control or the other way around, or possibly they're just close enough to the pointer down area to be notified as well.

Is this possibly related to the newly added pointerId? Why is the behavior different on mobile?

No PG repro for this yet as I thought you might know what's going on without.

ss.thumb.png.299f68025069a01c8ab64fc07194509b.png

 

EDIT:

After more testing I'm under the impression that the pointer area detection is not accurate now in mobile, possibly when combined with using idealWidth.

For instance clicking some place can trigger a button somewhere else at its original positioning before idealWidth is applied to it. Let me know if I got this right.

Link to comment
Share on other sites

I know - it's the point of using a library that cross-browser/platform quirks are handled transparently.  Did you find an underlying reason - like clientWidth/clientHeight being calculated incorrectly - or not reporting devicePixelRatio correctly?  I searched when this was first discovered through Chrome bugs, but did not find anything.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...