soulwire / sketch.js

Cross-Platform JavaScript Creative Coding Framework
MIT License
4.09k stars 431 forks source link

cursor position bug in particles.html introduced in aa167ae3e7d #64

Closed akarve closed 10 years ago

akarve commented 10 years ago

desired: particles should appear directly under finger/mouse (seen in master / 9a6b65a0) observed: particles displaced down and left of finger/mouse in proportion to distance from upper left (0, 0) (seen in top of tree master / aa167ae3e7d )

reproduces on these devices: MacBook, OS 10.9.4, Chrome v37.0.2062.94 iPhone 5S, iOS 7.1.2 (11D257)

soulwire commented 10 years ago

Hi Aneesh,

I'm not seeing that in the current master in that version of Chrome on Mac or in the iOS emulator. Can you confirm this is still happening after the last commit?

My instinct is that it's to do with retina - does your MacBook have a retina screen and if so are the mouse offsets proportional to devicePixelRatio from what you can see?

Thanks

akarve commented 10 years ago

confirmed fixed in 33cac83ce0bd899ef803642877e74d38624cb5bc on macbook retina and iphone 5s. still repros in aa167ae3e7d96970131aad1887222a914a5cd1c3. bug appears to be independent of display scaling, as it repros for every resolution in System Preferences > Displays.