Skip to content

Conversation

@sidhansu10
Copy link

Summary

Fixes an issue where interacting with p5 DOM elements (e.g. createSelect)
in Safari triggers mousePressed but not mouseReleased, leaving
mouseIsPressed stuck in a true state.

Details

  • Safari does not always propagate mouseup back to the canvas after DOM interactions
  • This patch forwards DOM mouseup events to p5’s internal mouse handler
  • Guarded to only trigger when mouseIsPressed is true
  • Implemented centrally in addElement to cover all p5 DOM elements

Resolves #8293

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

Successfully merging this pull request may close these issues.

Missing mouseReleased event with createSelect DOM object in Safari

1 participant