Skip to content

Commit

Permalink
Update Scroller.stories.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir-Kokin committed Jun 6, 2024
1 parent 2445fa8 commit 12bf5bf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const ComponentCode =
' <div style={{ height: "92vh" }}> \r\n' +
" <Scroller \r\n" +
" ref={(el) => { \r\n" +
" el.zoom(10, 10); \r\n" +
" el.scrollTo(0.2, 0.2); \r\n" +
" el?.zoom(10, 10); \r\n" +
" el?.scrollTo(0.2, 0.2); \r\n" +
" }} \r\n" +
" onScroll={(x, y) => { \r\n" +
" setInfo( \r\n" +
Expand Down Expand Up @@ -60,8 +60,8 @@ const Template = (args) => {
<div style={{ height: "92vh" }}>
<Scroller
ref={(el) => {
el.zoom(10, 10);
el.scrollTo(0.2, 0.2);
el?.zoom(10, 10);
el?.scrollTo(0.2, 0.2);
}}
onScroll={(x, y) => {
setInfo(
Expand Down

0 comments on commit 12bf5bf

Please sign in to comment.