Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you scroll up and down fast then you see that animation has queued and will take some time to end. I think animation should be forced to stop before new has started.
Comment | File | Size | Author |
---|---|---|---|
#1 | back_top_top-fade_animation_will_queue-2383655-1.patch | 561 bytes | hkirsman |
Comments
Comment #1
hkirsman CreditAttribution: hkirsman commentedSubmitting pathc.
Please add my name to git log if you decide to implement this.
Comment #2
hkirsman CreditAttribution: hkirsman commentedOr maby just FadeTo 0 should be stopped. Because if you scroll fast and it's a long page then fadeIn will pause until you stop.
Comment #3
Rudi Teschner CreditAttribution: Rudi Teschner commentedPatch is working and the artifact of the button caused by the fading doesnt appear anymore.
Comment #4
l.antonova CreditAttribution: l.antonova commentedGood patch!
Comment #5
acke CreditAttribution: acke at Happiness commentedThanks for the suggestion, here comes some feedback, better late than never as you say. I don't think the feeling in the animation gets good with the patch. But it's also not good that the animation flashes if you scroll up and down but a better aproach can be to just fade out on stop. Like this code:
Comment #7
acke CreditAttribution: acke at Happiness commented