![]() Preserved Topic: Yay, it works! it works! Mah very own scrollbar. (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: Brisbane, Australia |
![]() Heh. Can you tell I'm just a tad excited? |
Maniac (V) Inmate From: under the bed |
![]() |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Nice and smooth. I like the rollovers. |
Maniac (V) Mad Scientist From: New California |
![]() Great job, Drac! I haven't had time to look at the code but the operation is just fine. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
![]() Excellent, very nice work! Some minor details that I remember haunted me for months were these: When you click on the "dragger", you don't really want it to jump to where you clicked (with your mouse in the center of the dragger), instead you want to check the offset of where we clicked, and adjust based on that. So, click at the top of the dragger, and that's where it stays, glued to your mouse. I was always kinda torn over "what should happen" when you click on the bar, should it jump to that spot, or page down, or scroll down very fast till it gets to that point? I've opted for the last choice, although the traditional windows metaphor calls for a page down. (Same code when you think about it, the "very fast" jump setting is just set to the height of the display window, minus a couple lines.) One last thing that I spent a bunch of time with is deciding when the scrolling stops, I used to do it as you do, if your mouse drifts too far right or left it stops, but now once it's started I don't stop until I get a mouseup event. (You'll need to handle the case that happens when people click, and then keep dragging off the screen, though! Once they come back the scrolling can still be on, even though the mouse is now up. Pain in the ass that one was.) |
Nervous Wreck (II) Inmate From: uk |
![]() congrats on the scroller... very fine work and as already mentioned, so neat as well.. |
Paranoid (IV) Inmate From: A graveyard of dreams |
![]() Impressive work Drac! Tried it in Moz1 and it works great |
Bipolar (III) Inmate From: Cold Sweden |
![]() Looks and works really nice. |
Maniac (V) Inmate From: Brisbane, Australia |
![]() Ok, I've made some updates; many based on the suggestions given here. |
Paranoid (IV) Inmate From: Lebanon |
![]() Dracusis, Good work! I like it! |
Maniac (V) Inmate From: Brisbane, Australia |
![]() I love trains! |