File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @author.io/element-slider-handle" ,
3- "version" : " 1.0.2 " ,
3+ "version" : " 1.0.3 " ,
44 "description" : " author-slider-handle custom element (web component)." ,
55 "main" : " dist/author-slider-handle.min.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -16,8 +16,13 @@ class AuthorSliderHandleElement extends AuthorBaseElement(HTMLElement) {
1616 return
1717 }
1818
19- this . UTIL . setStyleProperty ( 'positionRule' , 'left' , `${ x . pct * 100 } %` )
20- this . UTIL . setStyleProperty ( 'positionRule' , 'top' , `${ y . pct * 100 } %` )
19+ if ( x ) {
20+ this . UTIL . setStyleProperty ( 'positionRule' , 'left' , `${ x . pct * 100 } %` )
21+ }
22+
23+ if ( y ) {
24+ this . UTIL . setStyleProperty ( 'positionRule' , 'top' , `${ y . pct * 100 } %` )
25+ }
2126 }
2227}
2328
You can’t perform that action at this time.
0 commit comments