ilyashubin / scrollbooster

Enjoyable content drag-to-scroll library
https://ilyashubin.github.io/scrollbooster
MIT License
990 stars 81 forks source link

Won't run smoothly with the inspector open #100

Open interactiveRob opened 6 months ago

interactiveRob commented 6 months ago

A simple horizontal slider set to transform mode will run very jerky when the inspector tab is open in dev tools.

Not a big issue, but it did make me think this plugin wasn't working properly for 20 minutes before I realized that the inspector itself was the cause of the bug.

My guess would be that the browser memory/render is dropping frames trying to display the transform and the inline styles on the draggable element. The animation tween is currently being applied via rapid fire inline CSS transforms.