hiKrittiya

hiKrittiya
- Name: [not set]
- Favorite Languages: [not set]
- Website: [not set]
- Location: [not set]
- About Me: [not set]
-
Using jQuery Slider to Scroll a Div
06/17/2009 - 16:43
hi again :)
I found the answer that someone posted from
http://jqueryfordesigners.com/slider-gallery/
and want to share.//Using jQuery ui 1.7.2
the ui.slider.js: needs to be modified. fromvar allowed = this._trigger("slide", event, {
handle: this.handles[index],
value: newVal
});to
if(event.type == 'mousemove') {
var allowed = this._trigger("slide", event, {
handle: this.handles[index],
value: newVal
});
}This prevents the slide function from being triggered when clicking the slider ( track).
-
Using jQuery Slider to Scroll a Div
06/16/2009 - 10:51
hi The Fattest.
Thank you for your response. Did you get a chance to look and find a solution to the unsteady animation (when clicking the track)? I wonder if this is caused by a conflicting logic in the two callback functions ( slide and change) .
For example, whenever the track is clicked, the handleSliderSlider function will always be executed before handleSliderChange function. The code in the handleSliderSlider function tells the content-scroll to move without animation. Then, the handleSliderChange tells content -scroll to move with animation BUT the content -scroll was already moved before.Is there a way to stop handleSliderSlider from being executed when the track is clicked?
If my assumption makes sense, I wonder why this is not an issue in older jquery ui 1.2.x ( the demo embedded on this page shows a perfect smooth animation when clicking the track).
I'm new to jQuery but found your resource very useful. Thank you in advance!
-
Using jQuery Slider to Scroll a Div
06/12/2009 - 01:02
Very nice work! I downloaded your slider_example which uses jquery 1.3.2 and ui 1.7.1. and tested it.
It works fine when I drag the blue handle. However,if I click anywhere on a grey track, the content doesn't scroll /animate properly. Sometimes the content jumps without animation and sometime with animation.I found a similar issue when I tried the tutorial I found below with jquery 1.3.2 and ui 1.7.1 http://jqueryfordesigners.com/slider-gallery/
I'll revisit your site to see if you find any solution to fix it.
Thanks again :) !!!!
Recent Comments