mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 13:38:40 +00:00
remove mock positions
This commit is contained in:
parent
f5b092acf2
commit
78770888a5
@ -218,29 +218,6 @@ export function Repl({ embedded = false }) {
|
|||||||
// console.log('selectino change', selection.ranges[0].from);
|
// console.log('selectino change', selection.ranges[0].from);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleDocChanged = useCallback(
|
|
||||||
({ view }) => {
|
|
||||||
if (!init) {
|
|
||||||
// this is only for testing! try this pattern:
|
|
||||||
/*
|
|
||||||
stack(
|
|
||||||
s("bd"),
|
|
||||||
s("hh oh*<2 3>")
|
|
||||||
)
|
|
||||||
*/
|
|
||||||
updateMiniLocations(view, [
|
|
||||||
[12, 14],
|
|
||||||
[23, 25],
|
|
||||||
[26, 28],
|
|
||||||
[30, 31],
|
|
||||||
[32, 33],
|
|
||||||
]);
|
|
||||||
init = true;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
[view],
|
|
||||||
);
|
|
||||||
|
|
||||||
const handleTogglePlay = async () => {
|
const handleTogglePlay = async () => {
|
||||||
await getAudioContext().resume(); // fixes no sound in ios webkit
|
await getAudioContext().resume(); // fixes no sound in ios webkit
|
||||||
if (!started) {
|
if (!started) {
|
||||||
@ -335,7 +312,6 @@ stack(
|
|||||||
onChange={handleChangeCode}
|
onChange={handleChangeCode}
|
||||||
onViewChanged={handleViewChanged}
|
onViewChanged={handleViewChanged}
|
||||||
onSelectionChange={handleSelectionChange}
|
onSelectionChange={handleSelectionChange}
|
||||||
onDocChange={handleDocChanged}
|
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
{error && (
|
{error && (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user