Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Smooth scrolling in the "highlightElement" function blocks user scrolling #316

Closed
mikehobi opened this issue Mar 20, 2018 · 2 comments
Closed

Comments

@mikehobi
Copy link

When clicking on an element in the layer list, the preview pane will highlight & scroll to the selected element. If the user attempts to scroll within the preview pane during this scrolling, it appears jenky and disallows the user from scrolling.

alva

Expected behavior: User scroll cancels out programmatic scroll and animation.

@lkuechler
Copy link
Member

Hi @mikehobi,
Thank you for reporting this bug.
For now we sadly have to use a polyfill for the smooth scrolling and i have the feeling it brings this bug with it.

I have the hope that we can remove the polyfill with the Electron 2.0 update and that the native behaviour does not have this bug.

@TheReincarnator TheReincarnator added this to the Beta Version milestone Mar 29, 2018
@TheReincarnator
Copy link
Contributor

@lkuechler, @mikehobi: We were having a different issue here. The scroll-into-view was triggered multiple times. I fixed this with an extra check in the highlight area.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants