Cursor is controlled by partition timestamps provided by playview and can thus be paused and onEndReached is now called

This commit is contained in:
Clément Le Bihan
2023-07-24 17:30:39 +02:00
parent 3ac017a5f0
commit 7438986bcd
4 changed files with 114 additions and 124 deletions
+6 -1
View File
@@ -31,7 +31,9 @@ const PartitionCoord = ({
setPartitionData([base64data, a]);
onPartitionReady();
}}
onEndReached={onEndReached}
onEndReached={() => {
console.log('osmd end reached');
}}
timestamp={timestamp}
/>
)}
@@ -39,6 +41,9 @@ const PartitionCoord = ({
<PhaserCanvas
partitionB64={partitionData?.[0]}
cursorPositions={partitionData?.[1]}
onEndReached={() => {
onEndReached();
}}
/>
)}
</>