Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚩PR: Added feature of GridLayout repositioning #624

Merged
merged 10 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed null positioning on device remove
  • Loading branch information
elsoazemelet committed Mar 4, 2024
commit 70d8950a620c4a10c1529444f59eb156d4694f65
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,14 @@
}
</script>

<svelte:body on:keydown={handleKeyEvent} on:keyup={handleKeyEvent} />
<svelte:window on:keydown={handleKeyEvent} on:keyup={handleKeyEvent} />

<!-- svelte-ignore a11y-no-static-element-interactions -->
<container
id="surface"
class="absolute w-full h-full z-[1]"
on:mouseleave={handleMouseLeave}
class:pointer-events-none={!trackMouse}
class:cursor-grabbing={dragMouse}
class:cursor-grab={trackMouse}
/>
2 changes: 1 addition & 1 deletion src/renderer/runtime/runtime.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ function create_runtime() {
return rt;
});

if (_runtime.length === 0) {
if (get(_runtime).length === 0) {
appSettings.update((s) => {
s.gridLayoutShift = { x: 0, y: 0 };
return s;
Expand Down
Loading