Skip to content

Canvas scaling on the example pages breaks mouse click events #371

Closed as not planned

Description

@cart

In retrospect, this makes sense given that we're working around winit by scaling the canvas directly. I don't think we should revert canvas scaling, as it makes the examples visible on mobile / smaller screens and that feels worth it to me.

This seems like it would properly fix our problem, if merged:
rust-windowing/winit#2074

In the interim, we should consider "mitigating quality perception damage". Some ideas:

  1. Disable canvas scaling for examples that care about absolute mouse position and go back to a fixed size canvas.
  2. Flag examples that care about absolute mouse position and add a warning to their page (maybe with a link to this issue).
  3. Just remove examples that care about absolute mouse position until we have a fix.
scaling.mp4

Activity

  1. alice-i-cecile commented on Jun 8, 2022

    @alice-i-cecile
    Member

    Closing as fixed, although we may need to redeploy.

  2. mockersf commented on Jun 8, 2022

    @mockersf
    Member

    to use bevyengine/bevy#4726 on the website we will need to update some things on this side

  3. krunchington commented on Mar 7, 2025

    @krunchington
    Contributor

    FWIW I was not able to reproduce this issue just now, using Brave 134.1.76.73 on Ubuntu 24.04.2 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ExamplesC-BugA problem with the code that runs the siteS-Needs-InvestigationWe need to figure out what's going wrong

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions