Buckets:
| import isWindow from './isWindow'; | |
| export default function getscrollAccessor(offset) { | |
| var prop = offset === 'pageXOffset' ? 'scrollLeft' : 'scrollTop'; | |
| function scrollAccessor(node, val) { | |
| var win = isWindow(node); | |
| if (val === undefined) { | |
| return win ? win[offset] : node[prop]; | |
| } | |
| if (win) { | |
| win.scrollTo(win[offset], val); | |
| } else { | |
| node[prop] = val; | |
| } | |
| } | |
| return scrollAccessor; | |
| } |
Xet Storage Details
- Size:
- 434 Bytes
- Xet hash:
- 730c4cb032565daf26a4e0ee67193ebfd488955cb691e44f9f5c6b601f650b01
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.