remove mock positions
This commit is contained in:
parent
f5b092acf2
commit
78770888a5
1 changed files with 0 additions and 24 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue