UNPKG

ihave.to

Version:

Catch ideas. As they come and let them grow with your team in real time

30 lines (26 loc) 732 B
/*global $*/ /*global CONF*/ /*global isMobile*/ /*global setTimeout*/ (function () { "use strict"; // Handle device/browser/client specific properties if (isMobile()) { CONF.EVENTS.CLICK = 'touchstart'; //CONF.EVENTS.CLICK = 'click'; window.addEventListener('load', function () { setTimeout(function () { window.scrollTo(0, 1); }, 0); }); $(window).on('resize', function () { if ($(CONF.PROPS.STRING.BLOCKRESIZE).length === 0) { setTimeout(function () { window.scrollTo(0, 1); }, 0); } }); } else { CONF.EVENTS.CLICK = 'click'; } })();