MCPcopy Index your code
hub / github.com/hoothin/UserScripts / getSupportEventName

Function getSupportEventName

Picviewer CE+/dist.user.js:14181–14189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14179 var addWheelEvent=(function(){
14180
14181 function getSupportEventName(){
14182 var ret='DOMMouseScroll';
14183 if(eventSupported('wheel')){//w3c FF>=17 ie>=9
14184 ret='wheel';
14185 }else if(eventSupported('mousewheel')){//opera,chrome
14186 ret='mousewheel';
14187 }
14188 return ret;
14189 };
14190
14191 var eventName;
14192

Callers 1

initFunction · 0.70

Calls 1

eventSupportedFunction · 0.70

Tested by

no test coverage detected