Suggestions

"Scroll to top" Button

Submitted by _soxx, , Thread ID: 119126

Thread Closed
28-01-2019, 01:20 PM
#1
Even though it's not hard scrolling I think it would be a productive feature if we could simply press a button to let the forum scroll up. Just an idea...

RE: "Scroll to top" Button

#2
Just hit the home button on your keyboard it's literally faster than scrolling to a button on screen.
Please read the award requirements here before applying for them.
Rules and Regulations | Support Section | How to use Hide Tags
Don't message me to join a group, simply request to join one here.

RE: "Scroll to top" Button

#3
28-01-2019, 09:46 PM
Nasyr Wrote:
Just hit the home button on your keyboard it's literally faster than scrolling to a button on screen.

Forgive me this is going to sound really stupid but where is the home button on the keyboard as I would like to make use of this feature.

RE: "Scroll to top" Button

#4
28-01-2019, 09:48 PM
cgtweb Wrote:
Forgive me this is going to sound really stupid but where is the home button on the keyboard as I would like to make use of this feature.

In terms of the average keyboard like such;https://i.imgur.com/Y5VIO8P.png
Usually find it either at the side with Page Up and Page Down. Laptops it's usually top right I'm sure?
Please read the award requirements here before applying for them.
Rules and Regulations | Support Section | How to use Hide Tags
Don't message me to join a group, simply request to join one here.

RE: "Scroll to top" Button

#5
28-01-2019, 09:57 PM
Nasyr Wrote:
In terms of the average keyboard like such;https://i.imgur.com/Y5VIO8P.png
Usually find it either at the side with Page Up and Page Down. Laptops it's usually top right I'm sure?

Ahhh, mine is Fn+left arrow, says "home" under the left arrow, silly me, thanks buddy, appreciate it.

RE: "Scroll to top" Button

#6
The alternative in Theme Settings change it to move with scroll: https://i.imgur.com/4HxhGmu.png
Click home to go back to the top as well.
If on mobile just hit the Nulled at the top to return to the top of the home page.
Please read the award requirements here before applying for them.
Rules and Regulations | Support Section | How to use Hide Tags
Don't message me to join a group, simply request to join one here.

RE: "Scroll to top" Button

#7
On MacOS, the theme and the scrollbar blends in as they are both black, and this makes it really hard to scroll anywhere. A scroll button would be very convenient.

RE: "Scroll to top" Button

#8
Adding a "back to top" button in the bottom right corner is a great idea.

RE: "Scroll to top" Button

This post was last modified: 30-01-2019, 06:56 AM by kadreyalta
#9
There is an anchor tag in the source of the site which suggests that this was an intended feature in the past.

[Image: CmbnFDR.png]


The only issue is that the href value is what keeps this from working as intended since my tests with Javascript always results in redirecting to the homepage when clicked.

So my way of doing this was by using the following Javascript/ECMAScript code:
Code:
function totop() {
document.body.scrollTop = document.documentElement.scrollTop = 0;
}

let foot = document.getElementsByClassName('spacer-left-5 spacer-right-5')[0],
adiv = document.createElement('div'),
link = document.createElement('a');

adiv.setAttribute('class', 'footer-link');
link.setAttribute('href', 'javascript:totop()');
link.innerHTML = 'Goto top of page';
adiv.appendChild(link);
foot.appendChild(adiv);
With some extra touches (mainly CSS) this could wind up looking like it was a part of the site (this works best as a greasemonkey/tampermonkey script).
1

RE: "Scroll to top" Button

#10
totally agree with you. its much needed for people with laptops.

Users browsing this thread: 3 Guest(s)