geut / mithril-transition

A lightweight library for MithrilJS to create your own custom transitions based on the lifecycle of your components.
https://geut.github.io/mithril-transition/
MIT License
39 stars 4 forks source link

Gets stuck in wrong transition direction #8

Open foucist opened 6 years ago

foucist commented 6 years ago

I was playing with the example, in desktop safari. I noticed a bug:

First of all, incognito mode, safari 11.02:

Click page 'next' until it loops back to page 1 click [disable] Click page 'next' until it loops back to page 1 click [enable] Click page 'next' until it loops back to page 1

Then hit browser back button a bunch of times. It initially does the correct 'left-to-right' transition, but then at some point the transitions get flipped.

Then if you start going forward again, it uses the opposite/wrong transition also.