Shapely smooth scroll bug

Here is the problem. When i load a site with a hashtag in the url (Example Domain) the following error occurs.

Uncaught TypeError: Cannot read property 'top' of undefined
    at HTMLDocument.<anonymous> (shapely-scripts.js:30)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)

I cant link to an example as its on local server. But it happens on two different setups i run.

Hey there,

I hope you are well today and thank you for your question.

Unfortunately, I’m unable to replicate that issue using the description mentioned.
Here’s a screencast where I added an ID, created a menu item.
An error is not generated in the test environment.

Screencast: http://recordit.co/JBc51KKczz

Best regards,
Support.

Hi and thanks for the reply.

I have recorded a video showing the problem on a complete fresh setup at localhost.
Wordpress 4.9.4
Shapely 1.2

Video https://www.youtube.com/watch?v=K5_Fr7N8NDc

Hey there

Dear @buurdi in order to debug your website its necessary to bring it online, we cant check your problem while it is happening on your localhost, can you upload it?

I have now uploaded it online.
You can check it here
http://bas.rf.gd/

All you have to do to see the error triggered is to go to
http://bas.rf.gd/#test

Hello there,

I hope you are doing well today.

Where should # test lead to?

You need to ensure that the selector being used exists. So please try using this one as a test “#shapely_home_parallax-3

Best Regards,
Support

Did you even test it yourself? It still give the same error. And even tho it exist or not, the script shouldt giva an error.

Hi there

Dear @buurdi can you tell me what you want to achieve? yes, i see this error code if we type this url in the url bar http://bas.rf.gd/#test but then what? you have to properly use hashtags, they must be called from the menu and must be connected to a page section,

Im trying to make you fix this bug. in one of my websites im using anchor to navigate a one pager. But i had to remove all your “smooth scroll” code and make my own fix to make it work. Because when you navigated from another webpage it would trigger an error and make other elements fail.

Now i have reported the bug, do whatever you want.

Hello there,

I am sorry for the inconvenience caused here.

In this case, it is a bug in the theme’s smooth scroll feature so we would have to let the developer know of this issue so that an update can be issued out.

Best Regards,
Support