We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

scroll down - Omni | Forum

jourdan lionel
jourdan lionel Dec 27 '15
Hello,


I have noticed that the scroll down is very slow when using a Mac or PC ( safari, chrome..) , no issue from mobil....

The Forum post is edited by jourdan lionel Jan 3 '16
ross Team
ross Dec 27 '15
Yes, it is the javascript effect which you can control. 


In the general.html file of the theme


you can find these lines: 

var time = 400;var distance = 300;

or you can just remove this function at all:

<script>if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false);window.onmousewheel = document.onmousewheel = wheel;
function wheel(event) {var delta = 0;if (event.wheelDelta) delta = event.wheelDelta / 120;else if (event.detail) delta = -event.detail / 3;
handle(delta);if (event.preventDefault) event.preventDefault();event.returnValue = false;}
function handle(delta) {var time = 400;var distance = 300;$('html, body').stop().animate({scrollTop: $(window).scrollTop() - (distance * delta)}, time );}</script>

I see you have added a review and indicated this as the problem I would really appreciate if you change the review. Thanks

jourdan lionel
jourdan lionel Jan 3 '16
Thanks Ross,


It works !!


thanks for your support

ross Team
ross Jan 3 '16
No problem:)
You do not have permission to reply this topic