wokwi / wokwi-elements

Web Components for Electronics and IoT Parts
https://elements.wokwi.com/
MIT License
185 stars 50 forks source link

wokwi-potentiometer usability issues when rotated #70

Closed urish closed 2 years ago

urish commented 3 years ago

Example: https://wokwi.com/arduino/projects/299392610996322826 (rotating the potentiometer by 142 degrees).

180 degrees seem to be the most confusing.

A good place to start looking is the slide-potentiometer implementation (#63), where a similar issue has been fixed using the inverse of the matrix returned by getScreenCTM().

urish commented 2 years ago

Fixed!

Koepel commented 2 years ago

In Chromium, the potentiometer can be rotated and the glitch is gone. In Firefox, the potentiometer can no longer be used.

urish commented 2 years ago

Thanks for reporting! I suspect that the firefox issue is related to #87.