benjaminkott / bootstrap_package

Bootstrap Package delivers a full configured theme for TYPO3, based on the Bootstrap CSS Framework.
https://www.bootstrap-package.com/
MIT License
338 stars 205 forks source link

No smooth scrolling #1465

Open SventB opened 10 months ago

SventB commented 10 months ago

Bug Report

Prerequisites

Description

There's a JavaScript file included for smooth scrolling:https://github.com/benjaminkott/bootstrap_package/blob/6f3e3c2b95fa82171be970268626dbda79bbea81/Configuration/TypoScript/setup.typoscript#L349 but I see no smooth scrolling, e.g. in menu type "sections" or in element "Scroll to top".

It's working in Chrome, seems there is an issue with Firefox with window.scroll(). I've debugged it, but came to no solution.

It's working on the demo page for Firefox: https://www.bootstrap-package.com/

Eventually you are using EXT:bootstrap_package in v13 there and it's working in v13 but not v14?

alexanderbeckus commented 1 month ago

Hello I have got the same problem only on firefox. I use Typo3 12.4 and boostrap 14 If i change the bootstrap.smoothscroll.min.js ...e;document.querySelectorAll('a[href*="#"]:not([href$="#"])') to ...e;document.querySelectorAll('a[href$="#"]:not([href$="#"])') changed * to $ it works but i get the link in the brower showing #to_top wich i don't like ... Kind regards

alexanderbeckus commented 1 month ago

I am using docker on mac and the demo bootstrap site doesn't scroll at all to top. Typo3 11 it works