Closed felipemechailech closed 7 years ago
Hi Guys, Congrats for the project, it's awesome! I suggest implement this plugin to fix the popup scrolling, It'll prevent the page scroll together:
$.fn.isolatedScroll = function() { this.bind('mousewheel DOMMouseScroll', function (e) { var delta = e.wheelDelta || (e.originalEvent && e.originalEvent.wheelDelta) || -e.detail, bottomOverflow = this.scrollTop + $(this).outerHeight() - this.scrollHeight >= 0, topOverflow = this.scrollTop <= 0; if ((delta < 0 && bottomOverflow) || (delta > 0 && topOverflow)) { e.preventDefault(); } }); return this; };
So just need to put: $('.wdt-emoji-scroll-wrapper').isolatedScroll()
Hi Felipe, Thanks for the snippet!
Hi Guys, Congrats for the project, it's awesome! I suggest implement this plugin to fix the popup scrolling, It'll prevent the page scroll together:
So just need to put: $('.wdt-emoji-scroll-wrapper').isolatedScroll()