- This topic has 35 replies, 5 voices, and was last updated 10 months, 2 weeks ago by Suraj Katwal.
January 31, 2020 at 2:40 pm #1150878Fernando
There is a problem when we use smooth scroll in GP Premium and the plugin Lucky WP table of contents: links in this table dont work.
As LuckyWP says, error is in the GP plugin:
Problem in plugin GP Premium. Script https://www.luca.eu/wp-content/plugins/gp-premium/general/js/smooth-scroll.js overrided internal function window.scroll (https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll). This results in an error.
Question is: How do we solve this?
Thank you.January 31, 2020 at 6:06 pm #1150956TomLead DeveloperLead Developer
I have the same issue since last week, this is really frustrating. Could you please take a look and fix this Tom? They said the issue comes from GP premium
Take a look at what they said.February 3, 2020 at 5:37 pm #1153504Abdelhakim
Hey, Fernando. Did you fix the issue? If yes, what you did exactly.
Thank you.February 3, 2020 at 5:49 pm #1153506TomLead DeveloperLead Developer
Ah, so it’s a conflict with this library, which we’re using: https://github.com/cferdinandi/smooth-scroll
The script is very popular (almost 5k stars) – if it’s a conflict with LuckyWP specifically, they may want to want an issue with the author.February 3, 2020 at 5:52 pm #1153509Abdelhakim
Hey Tom, thank you for your quick replay, I don’t totally get what you are talking about…To be honest with you I am not a technical guy, I just want the problem to be solved.February 3, 2020 at 5:56 pm #1153511LeoStaffCustomer SupportFebruary 3, 2020 at 6:00 pm #1153513Abdelhakim
Hey, Leo. Thank you for the replay, This is exactly what I just did in the past 2 minutes, hopefully, they will understand and fix this issue because it is really annoying.February 3, 2020 at 7:34 pm #1153553LeoStaffCustomer SupportFebruary 4, 2020 at 4:23 am #1153886Abdelhakim
Hey, leo & Tom I had a disscution with the developper of Luckywp, this is what he told me :
Problem not in originl Smooth Scroll script. See this: https://github.com/cferdinandi/smooth-scroll/blob/master/dist/smooth-scroll.js
There is no “/* GP */ var scroll = new SmoothScroll( …` in this code.
This code added GP developers to this file: https://www.luca.eu/wp-content/plugins/gp-premium/general/js/smooth-scroll.js (see end of file). The problem is in the code that the GP developers added.February 4, 2020 at 8:16 am #1154358TomLead DeveloperLead Developer
That line is how you initiate the smooth scroll library.
If there’s something specific in that block of code causing a conflict, we would need more information. All it’s doing is initializing the smooth scroll library and sorting out the necessary offset for sticky navigations.February 4, 2020 at 8:41 am #1154402Abdelhakim
This is really annoying, I only want the problem to get fixed that’s it! Is it hard to do so!February 4, 2020 at 8:44 am #1154410TomLead DeveloperLead Developer
I understand, but I’m not seeing what the conflict is, which makes it impossible to fix.
Our smooth scroll feature is 100% optional, so you can turn it off if it’s conflicting on your website. There are other options available: https://wordpress.org/plugins/jquery-smooth-scroll/February 4, 2020 at 10:09 am #1154469Abdelhakim
Hello, Tom. The developer of LuckyWP replayed to me with this
Check out the video, please.
10 minutes ago
I created video: https://www.youtube.com/watch?v=NVs-Xi2ZrrU
I hope this will help GP developers understand their mistake.
They overrided internal function window.scroll: https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll.February 4, 2020 at 10:12 am #1154471Abdelhakim
Well, after watching the video and talking with some developers, I am pretty sure that the issue comes from your side.
- You must be logged in to reply to this topic.