By default, the Back to Top button appears at 100px. It would be nice to have an option which allow the administrator to set the number of pixel which trigger the Back to Top button.

Patch attached

First one, please be nice :)

CommentFileSizeAuthor
back_to_top-trigger.patch1.97 KBJibus
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jibus’s picture

Title: Ability to define when the Back to Top button appear » Ability to define when the Back to Top button appears
acke’s picture

Assigned: Unassigned » acke

Excellent idea! I try this out and commit if it's working. At a quick glance to code looks good.

acke’s picture

Status: Needs review » Fixed

I tried it out and it works excellent. It's pushed to HEAD and going into the 7.x-1.3 release. Thanks Jibus for making Back To Top better!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.