Skip to content

Commit

Permalink
fix touch
Browse files Browse the repository at this point in the history
  • Loading branch information
sett committed Jan 11, 2024
1 parent 5e01145 commit a5d1e47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/landing/Componets/Intro/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function Intro() {
<Image className={s.clone} src={'/landing/preload.png'} alt={'preload'} width={226} height={200} />
</div>
<p className={s.intro_inner_content}>Connect these two building blocks to <br/> enter the <span>future of Bitcoin</span>.</p>
<div className={s.drag} onMouseMove={onMouse}>
<div className={s.drag} onMouseMove={onMouse} onTouchMove={onMouse}>
<div ref={gradientRef} className={s.drag_line}>
<svg xmlns="http://www.w3.org/2000/svg" width="130" height="2" viewBox="0 0 130 2" fill="none">
<path d="M0.827713 0.840111L0.427124 0.840111L0.427124 1.64131L0.827713 1.64131L0.827713 0.840111ZM129.019 0.840126L127.016 0.840125L127.016 1.64132L129.019 1.64132L129.019 0.840126ZM123.01 0.840125L119.004 0.840124L119.004 1.64132L123.01 1.64132L123.01 0.840125ZM114.998 0.840124L110.992 0.840123L110.992 1.64132L114.998 1.64132L114.998 0.840124ZM106.986 0.840123L102.98 0.840123L102.98 1.64132L106.986 1.64132L106.986 0.840123ZM98.974 0.840122L94.968 0.840122L94.968 1.64132L98.974 1.64132L98.974 0.840122ZM90.9621 0.840121L86.9561 0.840121L86.9561 1.64132L90.9621 1.64132L90.9621 0.840121ZM82.9501 0.84012L78.9442 0.84012L78.9442 1.64131L82.9501 1.64131L82.9501 0.84012ZM74.9382 0.840119L70.9322 0.840119L70.9322 1.64131L74.9382 1.64131L74.9382 0.840119ZM66.9263 0.840119L62.9203 0.840118L62.9203 1.64131L66.9263 1.64131L66.9263 0.840119ZM58.9143 0.840118L54.9083 0.840117L54.9083 1.64131L58.9143 1.64131L58.9143 0.840118ZM50.9024 0.840117L46.8964 0.840116L46.8964 1.64131L50.9024 1.64131L50.9024 0.840117ZM42.8904 0.840116L38.8844 0.840115L38.8844 1.64131L42.8904 1.64131L42.8904 0.840116ZM34.8785 0.840115L30.8725 0.840114L30.8725 1.64131L34.8785 1.64131L34.8785 0.840115ZM26.8665 0.840114L22.8605 0.840114L22.8605 1.64131L26.8665 1.64131L26.8665 0.840114ZM18.8546 0.840113L14.8486 0.840113L14.8486 1.64131L18.8546 1.64131L18.8546 0.840113ZM10.8426 0.840112L6.83665 0.840112L6.83665 1.64131L10.8426 1.64131L10.8426 0.840112ZM2.83068 0.840111L0.827713 0.840111L0.827713 1.64131L2.83068 1.64131L2.83068 0.840111Z" fill="url(#paint0_linear_28257_8061)"/>
Expand All @@ -113,7 +113,7 @@ export default function Intro() {
</svg>
</div>
<div ref={refWrap} className={s.drag_inner} onMouseLeave={onMouseUp}>
<button ref={refBtn} onMouseDown={onMouseDown} onMouseUp={onMouseUp}><img
<button ref={refBtn} onMouseDown={onMouseDown} onTouchStart={onMouseDown} onTouchEnd={onMouseUp} onMouseUp={onMouseUp}><img
src='/landing/drag.svg?v=2'
alt='drag' /></button>
</div>
Expand Down

0 comments on commit a5d1e47

Please sign in to comment.