diff --git a/WKVerticalScrollBar/WKVerticalScrollBar.m b/WKVerticalScrollBar/WKVerticalScrollBar.m index f99a9e1..fbd01be 100644 --- a/WKVerticalScrollBar/WKVerticalScrollBar.m +++ b/WKVerticalScrollBar/WKVerticalScrollBar.m @@ -174,6 +174,19 @@ - (void)setHandleSelectedCornerRadius:(CGFloat)handleSelectedCornerRadius } } +- (CGFloat)handleWidth +{ + return _handleWidth; +} + +- (void)setHandleWidth:(CGFloat)handleWidth +{ + _handleWidth = handleWidth; + if (!handleDragged) { + [handle setBounds:CGRectMake(0, 0, _handleWidth, [handle bounds].size.height)]; + } +} + - (void)layoutSubviews { [super layoutSubviews];