X6 icon indicating copy to clipboard operation
X6 copied to clipboard

AntV 2.x scroller plugin transitions leave animation in bad state

Open eberridge opened this issue 2 years ago • 1 comments

Describe the bug

After transitionToPoint, the next time I call transitionToPoint there is no animated transition, and the onTransitionEnd callback doesn't occur.

The workaround I found is to call "transitionToPoint" with the same PointLike parameter a second time inside the onTransitionEnd callback. This fixes the internal state and subsequent calls work fine.

Note: the same problem exists for transitionToRect.

Your Example Website or App

na

Steps to Reproduce the Bug or Issue

na

Expected behavior

na

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.11.1]

Additional context

No response

eberridge avatar Nov 24 '23 19:11 eberridge

👋 @eberridge

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

x6-bot[bot] avatar Nov 24 '23 19:11 x6-bot[bot]