Speed setting not working

Created on 26 November 2024, 26 days ago

Problem/Motivation

The configurable speed settings don't seem to actually take effect--that is to say, the speed always defaults to 1200 even if you enter a different number in module config.

Steps to reproduce

Visit /admin/config/user-interface/back_to_top and enter a number other than 1200 in the Speed field (for example: 9999); visit a page on which the Back to Top button is enabled and click the button: your custom speed value will not take effect.

Alternatively: if you place a breakpoint at line 58 of back_to_top.js and then, after clicking the Back to Top button, console.log the speed variable, you will get a value of 1200 regardless of the value set in module config.

Proposed resolution

Update JS so that the settings.back_to_top.back_to_top_speed is properly populated.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇺🇸United States TerraCoders

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024