Coder Social home page Coder Social logo

Comments (11)

tkahn avatar tkahn commented on July 30, 2024

Hi!

First try setting the new camel-case name for the autoScrolling option:

autoScrollingMode: "onStart"

But apart from that I think you might be experiencing a problem that seems to occur in Chrome (perhaps other browsers as well?) when there's no margin in the browser window. See issue #9. On that page there's a suggestion for a work-around as well.

What happens is that the browser triggers a mouseover event in the top left corner (0 x 0) of the browser window when you have some form of autoscroll activated, manualContinuosScrolling set to true. And if there's no margin on the page, the left hot spot will be in that position and it will in turn start scrolling left.

I'm still trying to solve this mystery. I need to know if it's a bug in the plugin, the browser or a combination of the two. From my point of view the browser shouldn't tigger a mouseover event at all since the mouse is nowhere near that position.

Try this and report back here if it works out for you.

from smooth-div-scroll.

smcgovern avatar smcgovern commented on July 30, 2024

I tried applying camel casing as well as adding margins of 1px as issue #9 suggests. Sadly it didn't affect scrolling at all.

from smooth-div-scroll.

tkahn avatar tkahn commented on July 30, 2024

I found another syntax error. All the options that control the auto scrolling should have names with "scrolling" not "scroll":

autoScrollingMode
autoScrollingDirection
autoScrollingStep
autoScrollingInterval

In your code I saw that three of the names with "scroll":

autoScrollingMode: "onStart",
autoScrollDirection: "right",
autoScrollInterval: 60,
autoScrollStep: 2,

Hope it works this time!

from smooth-div-scroll.

smcgovern avatar smcgovern commented on July 30, 2024

You had me hopeful, but no luck :(. Hovering over the hotSpots seems to be the only thing that works, even if I have other stuff enabled.

mousewheelScrolling: "allDirections"

If I have this on, I can mousewheel scroll but it only goes to the right. Weird issues! Wish wasn't happening cause this plugin looks so nice.

from smooth-div-scroll.

tkahn avatar tkahn commented on July 30, 2024

This is so wierd! If you download the code here on GitHub, copy in your exact options, like this:

$(document).ready(function () {

    $("div#makeMeScrollable").smoothDivScroll({
        autoScrollingMode: "onStart",
        autoScrollingDirection: "endlessLoopRight",
        autoScrollingInterval: 60,
        autoScrollingStep: 2,
        manualContinuousScrolling: true,
        hotSpotScrolling: true,
        hotSpotScrollingStep: 6
    });
});

...and run the example page (index.html) you'll see that it scrolls just like it should.

You have quite a lot of stuff going on on your page and even though it seems like good code there might be something happening when it's all running together?

Some further tips:

  • Use the callbacks to see if something is happening that shouldn't be happening.
  • Use the non-minified code and log out diagnostics to the console.

/Thomas

from smooth-div-scroll.

kopmanis avatar kopmanis commented on July 30, 2024

I'm finding that the mixed-case endlessLoopRight doesn't work, but all-lowercase, "endlessloopright" does. I have the 1.2 version of the plugin.

from smooth-div-scroll.

tkahn avatar tkahn commented on July 30, 2024

Yes, the name of the parameter changed to endlessLoopRight in version 1.3 so if you are using the older version of the plugin I think endlessloopright is the synax in version 1.2.

I made a general note about this in the Version history when I released version 1.3, but I agree that it can be hard to see.

Did this solve your problem?

from smooth-div-scroll.

kopmanis avatar kopmanis commented on July 30, 2024

Yepper...I'd found some anomalies and got it working. Great tool, though!

On Thu, Feb 14, 2013 at 11:16 AM, Thomas Kahn [email protected]:

Yes, the name of the parameter changed to endlessLoopRight in version
1.3 so if you are using the older version of the plugin I think *
endlessloopright* is the synax in version 1.2.

I made a general note about this in the Version historyhttp://www.smoothdivscroll.com/versionHistory.htmlwhen I released version 1.3, but I agree that it can be hard to see.

Did this solve your problem?


Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-13560749.

Jeff Kopmanis
Monroe Big Band: http://monroebigband.com
Soul Kitchen: http://soulkitchencooks.com
Orange Can Astronomy http://orange-can.blogspot.com
Pickle Reviews http://pickle-review.blogspot.com
Saxessories http://saxessories.blogspot.com
** Go Green and leave this email on the Screen! **

from smooth-div-scroll.

tkahn avatar tkahn commented on July 30, 2024

Sorry for the poor documentation regarding switching between different versions, but I'm glad you sorted it out!

from smooth-div-scroll.

hew avatar hew commented on July 30, 2024

I suffered with the same bug. I found that any time the right hover-able element extended beyond the width of the viewport, the script would break.

Here is an illustration. The top line is the viewport width (which is the same as the parent div). Notice that when there is enough space on the right side of the hover-able element, things work fine. If it extends beyond the parent's width, it seems to break.

Illustration

If you just play with the width of that div, and then centre it, it should work fine.

#makeMeScrollable { width: 99%; margin: 0 auto; }

from smooth-div-scroll.

hew avatar hew commented on July 30, 2024

Additionally, the above would seem to indicate that the issue is not so much with the right side, or right scrolling. Rather, the issue is with margins. I think if the #makeMeScrollable div was aligned to the right hand side, the leftward scrolling would likely break.

from smooth-div-scroll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.