-
AuthorPosts
-
December 5, 2014 at 8:51 am #158933
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.
December 5, 2014 at 5:25 pm #159196Hi 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.
December 5, 2014 at 6:23 pm #159230Hi,
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.
December 6, 2014 at 7:45 am #159434Hi 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.
December 6, 2014 at 5:20 pm #159577Thanks, 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
December 7, 2014 at 5:21 am #159777You’re welcome Guy.
-
AuthorPosts