File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
package/src/components/ImageGallery Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ export const ImageGallery = (props: Props) => {
378378 ) ;
379379
380380 /**
381- * This transition and scaleX reverse lets use scroll left
381+ * This transition and scaleX reverse lets use scroll right
382382 */
383383 const pagerStyle = useAnimatedStyle < ImageStyle > (
384384 ( ) => ( {
Original file line number Diff line number Diff line change @@ -59,17 +59,17 @@ export const useAnimatedGalleryStyle = ({
5959 {
6060 scale : selected ? scale . value / 8 : oneEighth ,
6161 } ,
62- { scaleX : - 1 } ,
62+ { scaleX : 1 } ,
6363 ] ,
6464 } ;
6565 } , [ previous , selected ] ) ;
6666
6767 const animatedStyles = useAnimatedStyle ( ( ) => {
68- const xScaleOffset = - 7 * screenWidth * ( 0.5 + index ) ;
68+ const xScaleOffset = 7 * screenWidth * ( 0.5 + index ) ;
6969 const yScaleOffset = - screenHeight * 3.5 ;
7070 return {
7171 transform : [
72- { scaleX : - 1 } ,
72+ { scaleX : 1 } ,
7373 { translateY : yScaleOffset } ,
7474 {
7575 translateX : - xScaleOffset ,
You can’t perform that action at this time.
0 commit comments