Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 97aaa36

Browse files
committed
add reset image
1 parent 8126b2e commit 97aaa36

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/image-viewer.component.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,8 @@ export default class ImageViewer extends React.Component<Props, State> {
114114
);
115115
}
116116
/**
117-
* props 有变化时执行
117+
* reset Image scale and position
118118
*/
119-
120119
public resetImageByIndex = (index: number) => {
121120
this.imageRefs[index] && this.imageRefs[index].reset();
122121
};

0 commit comments

Comments
 (0)