Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Snap threshold on scrollbar(indicator) not working. #1260

Open
snooksv3 opened this issue Mar 11, 2019 · 1 comment
Open

Snap threshold on scrollbar(indicator) not working. #1260

snooksv3 opened this issue Mar 11, 2019 · 1 comment

Comments

@snooksv3
Copy link

When applying snap with a threshold of 0.01(number doesn't matter), it doesn't work. The indicator is always at default(half height of window). The threshold does not get applied to the snap via use of the scrollbar. I've tried debugging this but it's a bit of a headache.

Here's hoping someone reads this.

Thanks.

@snooksv3
Copy link
Author

snooksv3 commented Mar 11, 2019

			if ( this.options.snap === true ) {
				cx = Math.round( stepX / 2 );
				cy = Math.round( stepY / 2 );
				//cy = Math.round(stepY * this.options.snapThreshold);

Herein lies the problem. If I use my commented out "cy", the snap works when scrolling down, not up. It needs to be scrolled all the way past the previous snap.

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

No branches or pull requests

1 participant