This commit is contained in:
Dennis Kobert 2025-07-25 19:51:25 +02:00
parent d3fe17bc45
commit efe31918e3
No known key found for this signature in database
GPG key ID: 5A4358CB9530F933
7 changed files with 14 additions and 81 deletions

View file

@ -5,8 +5,6 @@
import Editor from "@graphite/components/Editor.svelte";
import { send_message_to_cef } from "/wasm/pkg/graphite_wasm";
let editor: GraphiteEditor | undefined = undefined;
onMount(async () => {
@ -19,9 +17,6 @@
// Destroy the WASM editor handle
editor?.handle.free();
});
console.log("Test from app.svelte javascript");
sendMessageToCef("Test from app direct");
</script>
{#if editor !== undefined}

View file

@ -48,7 +48,6 @@
onMount(() => {
// Initialize certain setup tasks required by the editor backend to be ready for the user now that the frontend is ready
console.log("init after frontend ready from js");
editor.handle.initAfterFrontendReady(operatingSystem());
});

View file

@ -171,7 +171,6 @@
function canvasPointerDown(e: PointerEvent) {
const onEditbox = e.target instanceof HTMLDivElement && e.target.contentEditable;
console.log("Canvas pointer down", e, onEditbox);
if (!onEditbox) viewport?.setPointerCapture(e.pointerId);
if (window.document.activeElement instanceof HTMLElement) {
window.document.activeElement.blur();