metafizzy / metafizzy/flickity

Select cell does not prevent freeScroll

Open
#928 3 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
7.6k
Forks
593
PR merge metrics
No merged PRs in 30d

Description

Hi! So I was playing around with the freeScroll and friction when I noticed that if I am using my own buttons for select (not the page dots) and horizontally dragging the slider and releasing, the buttons will not trigger a new cell during animation.
The only way to trigger is by waiting for animation to finish and then trigger the event again.

So, the problem seems to be that there is no stop animation on custom elements, e.g. when using .select or .selectCell
Is this possible to be fixed?
Is this an issue?
Take a look at my codePen. Hopefully you understand my explanation.

**Test case:** https://codepen.io/brandflugan/pen/eoYyJv

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodePen and trace how custom .select or .selectCell calls interact with freeScroll and friction while a horizontal drag animation is active. Confirm the behavior with custom select buttons, then verify that a selection during animation triggers the expected new cell without waiting for the current animation to finish.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.