Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #158933

    guy_b
    Participant

    Hi,

    I tried your smooth scroll extension, but when active it prevents all mouse button interaction with the page.

    i.e, holding down the mouse button makes the page scroll when you move it, rather than allowing interaction.

    I mean you can no longer select text, to copy it etc.

    So I can see you are using a modified version of the NiceScroll jQuery plugin.

    I have used this in my own builds before, and it doesn’t behave this way, which is odd.

    I stopped using NiceScroll though, because it is a bit heavy, and requires CSS overrides to get rid of their custom scroll bars.

    Now I always use SmoothScroll:

    https://gist.github.com/galambalazs/6477177

    I can confirm that when I enqueue this script via my own site specific plugin, it works as intended, and the mouse button behaves normally again.

    #159196

    Nabeel A
    Moderator

    Hi there,

    Tested the Smooth Scroll extension and it works fine on my local install. You could try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

    #159230

    guy_b
    Participant

    Hi,

    I should have mentioned that before.

    I disabled ALL plugins.

    The only thing active on the site is X Shortcodes, your own custom VC Bakery, and X-Smooth scroll.

    The smooth scrolling “works”, as in the scrolling action in Chrome is “smooth” when scrolling with the mouse-wheel, but the left mouse button, when clicked, like when you want to select something, does not work.

    What it does do, when clicking and holding (as in to drag to the cursor over something to select some text), is cause the whole page to scroll up, or down. Move the mouse up, it scrolls up, move it down, it scrolls down.

    Windows 7 64bit, Chrome latest, WP latest, everything, latest versions.

    Weird. Sorry, this is not “normal” behaviour.

    I even installed (enqueued) a fresh basic version of NiceScroll to test. (it is the same plugin as yours other than whatever custom injects you have designed), and it works fine.

    Not a major problem I guess since I fixed it using an alternative. Maybe if you get other reports by users with the same problem it might be worth investigating.

    Thanks, you can close this ticket if you like.. wishing you a good weekend.

    #159434

    Christopher
    Moderator

    Hi there,

    Please edit a setting with the extension itself. Here is how you do that.

    /wp-content/plugins/x-smooth-scroll/views/site/smooth-scroll.php

    then find the “touchbehavior” on line 32 which by default is set to true. Simple change the value to false, save and that should do it.

    Hope it helps.

    #159577

    guy_b
    Participant

    Thanks, I don’t really need it now since I’m using the simpler solution linked to before…

    I don’t like hacking 3rd party core files because they lose the customization after every update.

    Anyway, I can confirm that the hack works, thanks for pointing out the location.

    Maybe you can add this to the settings though in case others run into the same problem?

    Cheers

    Guy

    #159777

    Christopher
    Moderator

    You’re welcome Guy.