Page 1 of 1

scrolling issue

Posted: Wed Jan 02, 2019 5:34 pm
by kiro
hi! i have a little issue with chrome. this is the iframe page of my forum in firefox, all is ok:
Image

but in chrome, i have this black stripe that i want to remove.
Image
i noticed that it appears because there is a little scrolling in the iframe when i scroll with the mouse (not in firefox)
the scroll can be seen better in the header. when i scroll clicking directly in the scroll bar the iframe dont scroll and the stripe dont appear
Image

forum

Re: scrolling issue

Posted: Wed Jan 02, 2019 9:08 pm
by axew3
Hello Kiro!
The problem is given by js smoothscroll.
Note this, that point you to resolve: if you open/reload in chrome, and click on scroll bar, maintaining mousedown on scrollbar, scroll until bottom and maintain mousedown:
you see that the problem not appear, until you do not release the mouse.
Then, this appear in chrome console:
SmoothScroll.js?assets_version=171:1
Unable to preventDefault inside passive event listener invocation.
This not happen in firefox, then the js code should may be fixed to work fine on different browsers.
:) your smoothscroll on eles phpBB theme do not want leave you in peace, since last time you had some other problem with it if i'm not wrong!

Have you try to disable the smothscroll and check that the problem disappear?

Re: scrolling issue

Posted: Thu Jan 03, 2019 11:41 am
by kiro
i put // at the beggining of both smooth-scroll.js documents to try to disable it and seems it worked.
thanks for point me again to the solution i thought it was something about iframeresizer

Re: scrolling issue

Posted: Thu Jan 03, 2019 1:57 pm
by axew3
yeah ok, it is a way: but should be resolved on js code related if you want the smooth scroll working...
but you're still using the old v2 code ... the new v3 is much better and really is near to perfection under any aspect ... consider to update to new version and new 1.9.4 just released, update!
new v3 code and procedure, just patched at date of this post to be "perfect"
https://www.axew3.com/w3/2018/12/phpbb- ... iframe-v3/
p.s also v2 code was updated last days to prevent "pre reload" on iframe behavior on links posts.

Re: scrolling issue

Posted: Fri Jan 04, 2019 2:48 pm
by kiro
i think now i've updated correctly the plugin and the iframe codes
i don't know exactly what are the changes it seems like before except for the url, now i could change it from mydomain.net/forum to mydomain.net/foro that was nice

Re: scrolling issue

Posted: Fri Jan 04, 2019 3:00 pm
by axew3
when you update the plugin, iframe code is updated also.
what you need to change is:
rebuild/substitute page-forum.php with new one on plugin, and add the v3 code in phpBB template files as on procedure.
v3 code is suitable for the new page forum on 1.9.4 and will not work on page forum for code v2 which was running for the version 1.9.3.

You can use the old page forum and the old code, to switch to new v3 you need to rebuild page forum, and substitute the code into overall_foooter.html with the new one.
There is also code for overall_header.html on the new v3 code.