Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only calculate drag movement for set scroll direction #364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

odysseuscm
Copy link

@odysseuscm odysseuscm commented Oct 30, 2021

Before, when used in vertical scrolling, x was always smaller than this.instance.limit.x resulting in the problem described here: #362
From a performance point of view it is better to not do both calculations, as only one scroll direction can apply. Most other function use the same distinction between this.direction === 'horizontal' and 'vertical',

Before, when used in vertical scrolling, x was always smaller than this.instance.limit.x resulting in the problem described here: locomotivemtl#362
From a performance point of view it is not necessary to do both calculations, as only one scroll direction can apply. Most other function use the same distinction between this.direction === 'horizontal' and 'vertical',
@odysseuscm odysseuscm changed the title Only calculate movement for set scroll direction Only calculate drag movement for set scroll direction Oct 30, 2021
@Jerek0 Jerek0 requested review from Jerek0 and removed request for Jerek0 April 28, 2022 20:51
@Jerek0 Jerek0 self-assigned this Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants