Показать сообщение отдельно
  #2 (permalink)  
Старый 25.02.2018, 12:05
Профессор
Отправить личное сообщение для Nexus Посмотреть профиль Найти все сообщения от Nexus
 
Регистрация: 04.12.2012
Сообщений: 3,736

Можно так попробовать:
[].forEach.call(document.querySelectorAll('.section-3 .text'), function(elem) {
	var onwheel = function() {
		(e || window.event).stopPropagation();
	};
  
	if(elem.addEventListener) {
		if('onwheel' in document) {
			elem.addEventListener("wheel", onwheel);
		} else if('onmousewheel' in document) {
			elem.addEventListener("mousewheel", onwheel);
		} else {
			elem.addEventListener("MozMousePixelScroll", onwheel);
		}
	} else { // IE8-
		elem.attachEvent("onmousewheel", onwheel);
	}
});
Ответить с цитированием