ElkArte Community

Elk Development => Feature Discussion => Topic started by: meetdilip on May 17, 2015, 10:58:02 am

Title: Go to top button
Post by: meetdilip on May 17, 2015, 10:58:02 am
Cannot use comfortably in mobile without it. Please see what can be done.
Title: Re: Go to top button
Post by: radu81 on May 17, 2015, 11:42:43 am
The two buttons go to top / bottom are visible only in horizontal mode on my Nexus 5.
Title: Re: Go to top button
Post by: meetdilip on May 17, 2015, 11:57:32 am
Now that you mention it, available in horizontal view state.
Title: Re: Go to top button
Post by: emanuele on May 17, 2015, 12:35:49 pm
They were visible, but then they were removed because I think it was mentioned they were not really useful.
I have no opinions on the matter TBH. :P
Title: Re: Go to top button
Post by: meetdilip on May 17, 2015, 01:39:17 pm
Would be nice to have them.
Title: Re: Go to top button
Post by: Joshua Dickerson on May 17, 2015, 02:11:18 pm
Disagree. I just swipe fast or go back
Title: Re: Go to top button
Post by: Spuds on May 17, 2015, 04:32:54 pm
Indeed they were hidden for the small screens since they took up valuable screen real estate (there is no gutter for it to live in on the small screens) and most (all?) phones you can just swipe coast back to the top/bottom.  It just seemed like an element that was not intended for mobile interfaces.
Title: Re: Go to top button
Post by: ahrasis on May 17, 2015, 08:34:00 pm
Or you can add it back yourself...
Title: Re: Go to top button
Post by: Jorin on May 19, 2015, 02:00:21 am
Depends on the length of the board index.  :-X
Title: Re: Go to top button
Post by: meetdilip on May 19, 2015, 06:47:20 pm
Sounds to me like scrolling is a very tedious job when we use PC. Much less exercise to fingers than swiping.
Title: Re: Go to top button
Post by: emanuele on May 20, 2015, 03:34:35 am
As I said I have no opinions on the mobile stuff, and I don't really want to give an "opinion" on the desktop one because I know I'm particular, I'll just describe the ways I normally use to scroll up and down:
sustained click of the scroll wheel and up (I can't use that now because of several side-problems),
home button (since I use the keyboard 95% of the time this is my preferred),
* grab the bar and move up.
I use the wheel seldom, that's mainly why I never really understood the reason for an UI-element that "helps" me to go to the top of the page. Also because I'd have to learn the position of the element for each and every site you visit (one may be on the left, one on the right, corner, mid-screen, fixed position, relative position only at the bottom, etc.)

Additionally the way the scroll is done by the up/down button (i.e. slowly accelerating/decelerating and moving stuff around), it makes me feel sick every time (and I don't mean in a figurative way, but in a real way, it gives me motion-sickness, or at least it used to, I prefer not to try it :P), so I never used it.

@Jorin I'm not sure if you mean you would have them back or not.
Anyway, if you want them back on your forum, you can add to your custom.css:
Code: [Select]
@media screen and (max-width: 33.750em) {
#gobottom, #gotop {
display: block;
}
}
that should be enough. ;)
Title: Re: Go to top button
Post by: Jorin on May 20, 2015, 04:04:47 am
Quote from: emanuele – @Jorin I'm not sure if you mean you would have them back or not.
Anyway, if you want them back on your forum, you can add to your custom.css:
Code: [Select]
@media screen and (max-width: 33.750em) {
#gobottom, #gotop {
display: block;
}
}
that should be enough. ;)

I don't need them in the mobile view, but I need them in the desktop view because I have many boards.
Title: Re: Go to top button
Post by: scripple on May 20, 2015, 11:02:35 am
They're still there on the desktop version, at least in the _light default theme.  It's on the left side of the browser on this particular forum anyway.

I find them annoying on mobile because fixed elements don't work well with pinch to zoom, so I'm glad they were disabled there.

On my forum I added links to "forum" and "unread" at the bottom below the "who's online" or the quick reply (I forget where in the templates they actually live, but they show up on every page.)  They're unobtrusive but very helpful as you get to the end of a page and they're always there to take you back.  If you use the unread posts it's great as you finish reading whatever you read and click unread again and get an updated page of what is unread.  Or if you want to go back to the top of the forum you click (or touch) the forum link.  A very natural place to have them.

When I first switched from SMF to Elkarte and they hadn't been added back in I got complaints from users.  So they're pretty popular.  I know I'm always annoyed at their absence when I'm reading here instead of my forum.  :P
Title: Re: Go to top button
Post by: meetdilip on May 21, 2015, 08:27:26 pm
The need to hide go to top button arises because of the nature of those buttons. If we replace the screen consuming buttons within default theme with usual arrow buttons it can be useful. As for so we need it in mobile, no if in you don't need in PC.

Speaking of which, an option to disable go to top on mobile in ACP ?
Title: Re: Go to top button
Post by: ahrasis on May 22, 2015, 12:02:03 am
Quote from: Jorin – I don't need them in the mobile view, but I need them in the desktop view because I have many boards.
How is that related to many boards? Jump to is normally used to go to other board, right?

Plus, it (go to up and go to bottom) is not removed from desktop view. Or you want the old go up and down button like in SMF?
Title: Re: Go to top button
Post by: Jorin on May 22, 2015, 01:34:25 am
No no, all is good. I just wanted to make clear that I don't want to loose the "go up/down" buttons in the desktop view.  ;)

Quote from: ahrasis – How is that related to many boards? Jump to is normally used to go to other board, right?

Please visit my board (http://forum-alternative-antriebe.de) and scroll down. You see, you have to scroll a long way, and as logged in member the forum has some more categories and boards which you don't see as a guest. And there's no "go down to info center".  ;)
Title: Re: Go to top button
Post by: ahrasis on May 22, 2015, 03:42:55 am
Quote from: Jorin – No no, all is good. I just wanted to make clear that I don't want to loose the "go up/down" buttons in the desktop view.  ;)
Same with me here. It is useful for quick scrolling to top and bottom especially for forum with plenty of categories and boards like yours.

If you want it (go up / go down) to be in fixed obvious positions in all pages, while viewing in mobile, other than restoring the default, may be you can just customize your index.template.php, like this for example:

Find:
Code: [Select]
<form id="search_form" action="', $scripturl, '?action=search;sa=results" method="post" accept-charset="UTF-8">
Add after that:
Code: [Select]
<a href="#bot" id="gobottom2" title="'. $txt['go_down']. '">↓</a>

And find:
Code: [Select]
theme_copyright(), '
</li>',
Change that to:
Code: [Select]
theme_copyright(), '
</li><a href="#top" id="gotop2" title="'. $txt['go_up']. '" style="float: right; padding-left: 10px;">↑</a>',

Hide it in normal view and show only in mobile view by adding this to custom.css:
Code: [Select]
#gobottom2, #gotop2 {
display:none;
}
@media screen and (max-width: 33.750em) {
#gobottom2, #gotop2 {
display: block;
float: right;
padding-left: 10px;
}
}

Or something like that... ;)