Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
4.11k
stars
1.51k
forks
source link
after defining in vuejs webpack document is not defined error #616
Open
imadarif opened 6 years ago
var $ = require('jquery'); require("jquery-mousewheel")($); require('malihu-custom-scrollbar-plugin')($);
Error: /node_modules/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.js:51 _dlp=("https:"==document.location.protocol) ? "https:" : "http:", / location protocol / ^ ReferenceError: document is not defined