Simple Machines Community Forum

SMF Development => Feature Requests => Topic started by: arjit on July 27, 2012, 08:21:41 AM

Title: Grab scroll
Post by: arjit on July 27, 2012, 08:21:41 AM
Hi guys .I don't know if this  feature  has been requested before or not ,so sorry if it has .
For some post's that may include jpg's as part of the post, that can be much wider than the current display setting so you can only view a part of the picture ,so you have to go down to the bottom of the message (which can be along way down if theres more than 1  picture in the post) to get to the sideways scroll bar ,and then after you have scrolled right you have to go back up to see the other side of the jpg .
It would be much much better if you could simply scroll a pic post left and right by left click grabbing and dragging .
Title: Re: Grab scroll
Post by: NanoSector on July 27, 2012, 08:27:25 AM
This is not something SMF has in control, sorry. Most browsers control this behavior.
Title: Re: Grab scroll
Post by: arjit on July 27, 2012, 08:43:48 AM
Ok thanks ,though I don't really understand why something like map's can grab scroll in  my browser but pic posts in forum cant be made to. ? But then i'm not a programmer :'(
    Is there  nothing at all that  I can do ?, change some browswer setting or something  ? .It  sucks big time .
The forums I am part of post alot of scans of circuit diagrams etc ,it makes it a real  pain having to open every picture in some other program so I can grab and scroll around.
Title: Re: Grab scroll
Post by: emanuele on July 27, 2012, 09:10:32 AM
Something like this perhaps: http://manos.malihu.gr/jquery-image-panning
Title: Re: Grab scroll
Post by: NanoSector on July 27, 2012, 09:59:51 AM
Quote from: emanuele on July 27, 2012, 09:10:32 AM
Something like this perhaps: http://manos.malihu.gr/jquery-image-panning
That could do it, dunno if the OP wants it lik ethat :P

Quote from: arjit on July 27, 2012, 08:43:48 AM
Ok thanks ,though I don't really understand why something like map's can grab scroll in  my browser but pic posts in forum cant be made to. ? But then i'm not a programmer :'(
    Is there  nothing at all that  I can do ?, change some browswer setting or something  ? .It  sucks big time .
The forums I am part of post alot of scans of circuit diagrams etc ,it makes it a real  pain having to open every picture in some other program so I can grab and scroll around.
Google Maps is developed by Google, all themselves. We haven't developed the images available ;)
We can't control the browser's behavior, except for workarounds.
Title: Re: Grab scroll
Post by: MrPhil on July 27, 2012, 10:03:02 AM
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:
Title: Re: Grab scroll
Post by: arjit on July 27, 2012, 01:01:46 PM
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:)
Title: Re: Grab scroll
Post by: Kindred on July 27, 2012, 01:15:02 PM
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...
Title: Re: Grab scroll
Post by: Antechinus on July 27, 2012, 06:19:48 PM
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.
Title: Re: Grab scroll
Post by: emanuele on July 27, 2012, 06:22:56 PM
Quote from: Antechinus on July 27, 2012, 06:19:48 PM
Wont work in Opera
Then it's not valid mark-up or css! :P
Title: Re: Grab scroll
Post by: Antechinus on July 27, 2012, 06:33:11 PM
Is so. :P

Anyway, why would you name a browser after fat people in daft costumes attempting to sound like a herd of cats? Says it all, really. :D
Title: Re: Grab scroll
Post by: JXDavise on October 30, 2012, 06:17:49 AM
Quote from: emanuele on July 27, 2012, 06:22:56 PM
Quote from: Antechinus on July 27, 2012, 06:19:48 PM
Wont work in Opera
Then it's not valid mark-up or css! :P


Yes, I think so too .