jquery - SmoothDivScroll plugin - IE locks up completely when dragging scroller to the left -
i've set smoothdivscroll plugin 1.3 on page, within popup window.
simplified init function, fires plugin , sets width of scrollable area based on length of content:
$('.slider').smoothdivscroll({ hotspotscrolling: false, touchscrolling: true, manualcontinuousscrolling: true }).find('.scrollablearea').css('width', count * 140 );
simplified markup:
<div class='slider'> <div class="portrait" style="background-image: url(img/bios/testing-thumb1.jpg);"></div> <div class="portrait" style="background-image: url(img/bios/testing-thumb2.jpg);"></div> <div class="portrait" style="background-image: url(img/bios/testing-thumb3.jpg);"></div> </div>
css, 'scrollwrapper' , 'scrollablearea' both created plugin when initialized:
.slider { position: absolute; top: 0; left: 0; border-top: 2px solid #000; border-bottom: 2px solid #000; height: 168px; width: 880px; } .slider .scrollwrapper { position: relative; overflow: hidden; width: 100%; height: 100%; } .slider .scrollablearea { position: relative; width: auto; height: 100%; } .slider .portrait { display: block; float: left; padding: 0 5px; width: 130px; height: 168px; position: relative; margin-bottom: 4px; background-position: center top; background-repeat: no-repeat; } .slider .portrait:hover, .slider .portrait.active { background-position: center bottom; } .slider .portrait:after { display: none; content: ""; position: absolute; top: 0; left: 5px; height: inherit; width: inherit; pointer-events: none; } .slider .portrait:hover:after { display: block; background-image: url(../img/popup-about-team-hover.png); }
click here see development build (scroll down , click green 'check directory' button)
works fine in chrome , firefox... in ie (of course) able scroll right (click , drag left) fine, if try , scroll left (click , drag right) browser locks up, totally frozen , must killed via taskmanager.
i don't understand plugin doing dom enough know problems @ point.
i did have 1 other questions plugin, not related ie issue. can remove , post separate question if needed though:
q) how go implementing left/right slide slider, using arrow keys on keyboard? know how bind keys, can't seem figure out how translate handler action plugin.
i looked @ issue , found version of jquery.kinetic
present within plugin.js
causing problem. not sure why happening haven't compared version of kinetic.js of yours version used on smoothdivscroll.com. if update plugin.js
replace code jquery.kinetic
compressed/minified version of http://www.smoothdivscroll.com/js/jquery.kinetic.js
believe work without issue.
please follow below steps:
- 1) open url http://www.smoothdivscroll.com/js/jquery.kinetic.js , copy js code there.
- 2) of online js compressor http://javascriptcompressor.com/; minify above copied code , save in temporary file.
- 3) open /js/plugin.js , comment out existing code jquery.kinetic , add above compressed code there.
- 4) run demo page , work on ie too.
thanks!
Comments
Post a Comment