SMF Development > Feature Requests
Grab scroll
MrPhil:
Can something like this go in the next major release (whatever is using jQuery)? It would be nice to have code blocks also be able to use this scrolling method. I don't recall running into this problem so much on SMF as on other forum software, but there's nothing more irritating than to have to scroll down to the bottom of a long code listing, scroll right, scroll back up and hope I didn't lose my place...
Some alternatives:
* Tiny scroll buttons <- and -> repeated on the left and right margins, so you don't have to go down all the way to the bottom. This would not need jQuery, and could probably be done in Javascript.
* An on-screen button to display an image (or code block) in a <div> that fits on the screen (say, 90% height and width) and has scroll bars. You wouldn't see much less than the full screen, and scroll bars would always be available. Use of a "lightbox" with scroll bars might show even more of the image.
arjit:
OK thanks guys after lots of research online I think I am sorted at least it is better now . I did not know O:) you could use the num pad or arrow keys as a shortcut to scroll horizontally .Apparently I had this feature disabled on my computer . O:)
Kindred:
Mr Phil... I don't know about the themes that you are using, but the themes that I use already do that (place a div with its own scroll bar) around code and images...
I thought the default did so as well...
Antechinus:
Phil: CSS3 resize FTW. It's already in the 2.1 code instead of the old max-height. At the moment it just says resize: vertical; but there's no real reason why it couldn't say resize: both;
Wont work in Opera or IE of course..................
It would be possible to use jQuery to resize code blocks for retarded browsers, if someone is into coding that. It would be best to not echo it for every browser, since Webkit and Gecko already handle this very well and javascript would just get in the way.
emanuele:
--- Quote from: Antechinus on July 27, 2012, 06:19:48 PM ---Wont work in Opera
--- End quote ---
Then it's not valid mark-up or css! :P
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version