Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Safari 15 // Group.moveTo not reflected #197

Open
miha-stopar opened this issue Oct 27, 2022 · 5 comments
Open

Safari 15 // Group.moveTo not reflected #197

miha-stopar opened this issue Oct 27, 2022 · 5 comments

Comments

@miha-stopar
Copy link

miha-stopar commented Oct 27, 2022

I am experiencing some strange problems on macOS Monterey / Safari 15.

The code looks like:

this.dragger.onDrag((ui, pt) => {
      const p = this.space.pointer.$subtract(ui.state('offset'))
      ui.group.moveTo(p)
      this.resizer.setCenter(ui.group[2])
    })

But the object is not moved, it just stays where it is. Strangely, after a right click (and context menu being opened) the object suddenly appears where it was (supposed to be) moved. But then again dragging doesn't work. It works in all other browsers that I tested (also other Safari versions). Any clue perhaps?

@miha-stopar
Copy link
Author

Just tried Pts.js demos in Safari 15 and none seems to work. Any idea what might be wrong?

@williamngan
Copy link
Owner

Hi @miha-stopar, sorry for the late reply. I tried this demo ( https://ptsjs.org/demo/?name=ui.track ) in Safari 15.5 and the drag/click/etc functions seems to be working.

Can you verify if the above demo is working for you? If it is but you're still having issues with your own demo, can you provide the full code so that I can see if the bug can be reproduced?

@miha-stopar
Copy link
Author

@williamngan Thanks for looking into it! I tried the demo with TestingBot using Safari 15.6.1 and it seems not to work - the cross is not moving and the circles cannot be dragged.

In Safari 14 everything seems to be ok, however it occurred a couple of times that in Safari 16 there was no interactivity until I refreshed the page. I couldn't figure it out when this happens yet.

@williamngan
Copy link
Owner

I updated to Safari 15.6.1 but I still can't reproduce the issue. Did you test it through some virtual machines in the cloud (using TestingBot)?

@miha-stopar
Copy link
Author

Yes, I assume it uses virtual machines.

There's another thing, but I am not sure if it's related to the above - however, it appears only in Safari (in this case Safari 16.0). The problem is that when the Pts canvas is not at the top of the page some coordinates seem to be miscalculated - I have a similar visualisation as it is here and the eyes are staring down even when the cursor is above them. After refresh everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants