Answer the question
In order to leave comments, you need to log in
The menu scrolls to the top of the page when the script is triggered, how to fix it?
Hello, there is a fixed menu, but when you click on the tab switch for example (or when you click on the search), the menu just scrolls up and that's it.
The problem is in this code
container.addEventListener( clickevent, function( ev ) {
classie.add(container, 'transform');
if( classie.has( perspectiveWrapper, 'animate') ) {
var onEndTransFn = function( ev ) {
if( support && ( ev.target.className !== 'container' || ev.propertyName.indexOf( 'transform' ) == -1 ) ) return;
this.removeEventListener( transEndEventName, onEndTransFn );
classie.remove( perspectiveWrapper, 'modalview' );
classie.remove(container, 'transform');
// mac chrome issue:
document.body.scrollTop = document.documentElement.scrollTop = docscroll;
// change top of contentWrapper
contentWrapper.style.top = '0px';
};
if( support ) {
perspectiveWrapper.addEventListener( transEndEventName, onEndTransFn );
}
else {
onEndTransFn.call();
}
classie.remove( perspectiveWrapper, 'animate' );
}
});
classie.add(container, 'transform');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question