|
@@ -74,7 +74,9 @@ function A1home() {
|
|
|
const toInfoPage = useCallback(() => {
|
|
|
if (isPcMoveFlag) {
|
|
|
const id = myData.homeData[index].id
|
|
|
- history.replace(`/info/${id}`)
|
|
|
+ console.log(id)
|
|
|
+
|
|
|
+ // history.replace(`/info/${id}`)
|
|
|
}
|
|
|
}, [index, isPcMoveFlag])
|
|
|
|
|
@@ -119,9 +121,9 @@ function A1home() {
|
|
|
onTouchMove={e => touchmove(e.touches[0].pageX)}
|
|
|
onTouchEnd={e => touchend(val => moveFu(val), 'mobile')}
|
|
|
onClick={toInfoPage}
|
|
|
- onMouseUp={e => touchstart(e.clientX)}
|
|
|
+ onMouseDown={e => touchstart(e.clientX)}
|
|
|
onMouseMove={e => touchmove(e.clientX)}
|
|
|
- onMouseDown={e => touchend(val => moveFu(val), 'pc')}
|
|
|
+ onMouseUp={e => touchend(val => moveFu(val), 'pc')}
|
|
|
onMouseLeave={MouseLeave}
|
|
|
></div>
|
|
|
|