OrbitOS Devlog 2: Defying Gravity 🛸The window manager is officially online! Building a custom draggable UI from scratch was tricky but incredibly rewarding.Progress:Window UI: Designed a sleek, frosted-glass window template using HTML and CSS.The Physics: Wrote a custom JavaScript engine using mousedown, mousemove, and mouseup events. It calculates the mouse delta to perfectly reposition the window using position: absolute.Z-Index Layering: Added logic so that whenever a window is clicked, its z-index dynamically increments, ensuring the active app is always brought to the front.Next up: Building our unique mini-apps and fetching live API data! 💻
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.