¡@

Home 

2014/10/16 ¤W¤È 12:06:06

jquery Programming Glossary: overflowaxis

Determine whether user clicking scrollbar or content (onclick for native scroll bar)

http://stackoverflow.com/questions/10045423/determine-whether-user-clicking-scrollbar-or-content-onclick-for-native-scroll

hasScroll function checking if the element has a scrollbar .fn.hasScroll function axis var overflow this.css overflow overflowAxis if typeof axis undefined axis y overflowAxis this.css overflow y else overflowAxis this.css overflow x var bShouldScroll.. a scrollbar .fn.hasScroll function axis var overflow this.css overflow overflowAxis if typeof axis undefined axis y overflowAxis this.css overflow y else overflowAxis this.css overflow x var bShouldScroll this.get 0 .scrollHeight this.innerHeight var.. axis var overflow this.css overflow overflowAxis if typeof axis undefined axis y overflowAxis this.css overflow y else overflowAxis this.css overflow x var bShouldScroll this.get 0 .scrollHeight this.innerHeight var bAllowedScroll overflow auto overflow..