Skip to content

Conversation

@pongstr
Copy link
Contributor

@pongstr pongstr commented Dec 22, 2024

  • feat: keyboard viewport addresses bug: setting the zoom value to 200% is not usable #115
    • added: pan around when zoomed in+out
      • hold spacebar and move around
      • hold primary click button to move around
    • added: ui handlers to increase/decrease zoom and reset view to optimal settings
    • refactor: scaling should not require child components to scale too, no re-render while zooming in+out
    • refactor: useLocalStorageState to have default serializer+deserializer
Screen.Recording.2024-12-22.at.20.16.13.mov

- feat: keyboard viewport + tools to pan-around and reset
@netlify
Copy link

netlify bot commented Dec 22, 2024

Deploy Preview for zmk-studio ready!

Name Link
🔨 Latest commit cedbd03
🔍 Latest deploy log https://app.netlify.com/sites/zmk-studio/deploys/6771b9f401658c00089fe7f4
😎 Deploy Preview https://deploy-preview-116.preview.zmk.studio
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

import { LockStateContext } from "../rpc/LockStateContext";
import { LockState } from "@zmkfirmware/zmk-studio-ts-client/core";
import { deserializeLayoutZoom, LayoutZoom } from "./PhysicalLayout";
import { useLocalStorageState } from "../misc/useLocalStorageState";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useLocalStorageState was created for future local storage uses. I don't think we should remove it #31 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restored useLocalStorageState, i slightly modified the hook to have default serialize+deserializer, imho, these options should only be required for specific serialize+deserializer functions. lmk what you think ^^

@pongstr pongstr requested a review from Nicell December 23, 2024 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants