{
+ setWidth(ref.offsetWidth);
+ setHeight(ref.offsetHeight);
+ }}
+ // default={{
+ // x: 500,
+ // y: 500,
+ // width: 350,
+ // height: "auto",
+ // }}
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
+ onDrag={() => {}}
+ >
+ {/*
*/}
-
- {/* {backgroundColor: showControls ? 'rgba(0,0,0,.5)' : 'unset'} */}
- {showControls && (
-
-
-
- {location && (
- {
- if(navigate){
- navigate(location)
- }
- }}>
- )}
- {playing && (
-
- )}
- {!playing && (
-
- )}
-
-
-
-
-
+
+ {/* {backgroundColor: showControls ? 'rgba(0,0,0,.5)' : 'unset'} */}
+ {showControls && (
+
+
+
+
+
+ {location && (
+ {
+ e.stopPropagation()
+ if (navigate) {
+ navigate(location);
+ }
+ }}
+ onTouchStart={(e) => {
+ e.stopPropagation()
+ if (navigate) {
+ navigate(location);
+ }
+ }}
+ >
+
+
)}
+ {playing && (
+
+
+
+ )}
+ {!playing && (
+
+
+
+ )}
+
+
+
+ )}
-
-
+
+
- {/* */}
+ {/*
*/}