(axis)
| 427 | return { how: 'scrolling-background', detail: style.backgroundAttachment }; |
| 428 | } |
| 429 | const border = (axis) => (axis === 'y' |
| 430 | ? Number.parseFloat(style.borderTopWidth) + Number.parseFloat(style.borderBottomWidth) |
| 431 | : Number.parseFloat(style.borderLeftWidth) + Number.parseFloat(style.borderRightWidth)); |
| 432 | const bar = edge === 'top' || edge === 'bottom' |
| 433 | ? box.offsetWidth - box.clientWidth - border('x') |
| 434 | : box.offsetHeight - box.clientHeight - border('y'); |