Commit Graph

2149 Commits (main)

Author SHA1 Message Date
Isaiah Odhner 4cc5de3b61 Update Electron and Electron Forge 2022-01-12 19:43:15 -05:00
Isaiah Odhner 567fd6f1ad Implement remaining MS Paint shortcuts
I might be mixing versions of MS Paint here btw, but whatever, I'm only adding shortcuts.
2022-01-12 19:14:00 -05:00
Isaiah Odhner 57bd0bf08e Support normal +/- for changing brush size
Closes #271
2022-01-12 18:19:25 -05:00
Isaiah Odhner 87af32f720 Update table to reflect disabled feature 2021-12-25 00:19:19 -05:00
Isaiah Odhner dcfe602cd5 Re-enable text selection in error details
- This doesn't cause much issue, since only once you open it does the iPad treat long presses ANYWHERE as selecting the text.
- This will be important for bug reports.
2021-12-20 12:10:21 -05:00
Isaiah Odhner f3bd1ea36d Update comment with alternatives
I'm giving up on this for now I think. It's good enough.
Reloading for changing the language is a very infrequent action,
and reloading for development is frequent but I can live with it.
Detecting fullscreen is NOT what I want to be working on.
2021-12-20 02:20:24 -05:00
Isaiah Odhner d32c8f6806 DRY fullscreen CSS using JS-toggled fullscreen class 2021-12-20 01:50:57 -05:00
Isaiah Odhner c31b75b523 Exit fullscreen when reloading, since iPad :fullscreen styles stop working
I have a better idea already. This doesn't work with the dev server auto-reload, and is not ideal UX, just saving some time/confusion assuming you're going to go back into fullscreen, and aren't equally confused by it exiting fullscreen.
2021-12-20 01:50:57 -05:00
Isaiah Odhner 91d657d62b Tweak Eye Gaze Mode fullscreen for iPad
The mode is nice for having big controls and a floating undo button,
I should really separate the options for coarse input optimized UI (large buttons) and dwell clicking (for hands-free usage).
I should probably bite the bullet and make a settings screen.
2021-12-20 01:50:57 -05:00
Isaiah Odhner 451d2e3c10 Prevent text selection of floating undo / gaze pause buttons (for iOS) 2021-12-20 01:50:57 -05:00
Isaiah Odhner 806f720f4b Move eye gaze mode floating buttons to right in RTL layout (and styles to CSS) 2021-12-20 01:50:57 -05:00
Isaiah Odhner 1de7cf2b44 Fix hiding/showing Thumbnail 2021-12-19 03:06:12 -05:00
Isaiah Odhner b68cb8bba5 Fix "TypeError: Type error"?
This happened once with Eraser on iPad (maybe while testing pinch zooming?)

Presumably the mask_canvas was not existing in some case and that's why drawImage got a TypeError.
2021-12-19 02:45:43 -05:00
Isaiah Odhner c4f614aa74 Fix Thumbnail for iPad (needs older ResizeObserver API) 2021-12-18 23:22:24 -05:00
Isaiah Odhner f50025d81d Crisp up the pixel art on Safari (adding more vendor prefixes) 2021-12-18 01:37:42 -05:00
Isaiah Odhner 43cbc58a31 Work around system overlays obscuring menu bar and tools on iPad
In fullscreen, the iPad shows the system bar as an overlay at the top, making the top of the page inaccessible.
It also adds a floating exit fullscreen (X) button.

This workaround shifts elements around to avoid these overlays.
It adds a spacer element to the top of the page to account for the system bar,
and styles it thematically as a titlebar. It looks great (very legit and intentional), at least on this one model of iPad,
but will probably break on other models. It's a very fragile thing, working around system overlays.
2021-12-18 01:37:42 -05:00
Isaiah Odhner 348d5b5ba1 Fix Fullscreen for Safari (adding vendor prefixes) 2021-12-18 01:37:42 -05:00
Isaiah Odhner 6c0cb00b2c Prevent text selection for mobile Safari
Previously, long-pressing would select the canvas, the selection, or in some cases, the entire page!

Not all of these prefixes are needed, but I can deal with that later.
Hopefully this doesn't interfere with anything!
2021-12-18 01:37:42 -05:00
Isaiah Odhner 1c0d8bb50f Fix brush preview not updating position if tapping with Eraser on iPad
It would only move to the new position if you dragged on the screen a bit, before.
It was being reset to the last position of a pointermove, even several gestures ago, due to code trying to account for scrolling and browser zooming.
2021-12-17 22:09:42 -05:00
Isaiah Odhner 9c554e522f Fix audio handling (especially on iPad) by switching to Web Audio API
- For all platforms: This lets sounds play overlapping each other (i.e. in quick succession)
- For (at least) iPad: This prevents media controls from being shown in the Control Center, as if it were music you'd want to play/pause/rewind.
- For (at least) iPad: This fixes sound getting cut off on subsequent plays, probably related to Safari treating the <audio> as if it were a music track.
2021-12-17 21:07:40 -05:00
Isaiah Odhner 58828ca323 Prevent menu bar activating in Firefox from Alt+Wheel zooming
Fixes https://github.com/1j01/jspaint/issues/264
2021-12-08 15:36:00 -05:00
Isaiah Odhner 2caede75f5 Fix variable reference error in #load: URL handling
Fixes https://github.com/1j01/jspaint/issues/265
2021-12-08 15:23:06 -05:00
Isaiah Odhner 380c9a0af1 Allow Backspace as an alternative to Delete (for Macbook keyboards)
Fixes #193
2021-12-08 15:03:37 -05:00
Isaiah Odhner da1d94a01c Don't use nearest neighbor scaling for Manage Storage thumbnails
Fixes #127
2021-12-08 12:32:41 -05:00
Mike Wang 3c61779077
Fix stroke size chooser contrast after changing theme from dark to modern (#262)
Fixes #261
2021-12-08 11:25:51 -05:00
Isaiah Odhner 2f8b0c412c Update news update date, it's shipping time! 2021-12-08 10:27:39 -05:00
Isaiah Odhner 2c0e2dea06 Scale up checkbox ticks and submenu indicators in Eye Gaze Mode 2021-12-08 10:03:48 -05:00
Isaiah Odhner 7bbf1ab3c9 Add winter theme promo image to close out the post 2021-12-08 10:03:48 -05:00
Isaiah Odhner a1520c3977 Note more improvements 2021-12-08 10:03:48 -05:00
Isaiah Odhner a87b04babf Update news update in regard to Flip/Rotate dialog
I think I changed my mind about letting you tab to the controls to enable them / select them, because then you couldn't tab to the OK button without changing the selection!
2021-12-08 09:50:18 -05:00
Isaiah Odhner 4332f6935d Fix fieldset border in Firefox (but not supporting theme)
Cherry-picking this pull request: https://github.com/jdan/98.css/pull/117/files
2021-12-08 09:50:18 -05:00
Isaiah Odhner 89def60105 Fix major regression where save dialog input closes software keyboard on tap (in Firefox for Android) 2021-12-08 09:50:18 -05:00
Isaiah Odhner b56b0a8879 Patch os-gui to fix Fonts box focus behavior when clicking controls 2021-12-08 09:50:18 -05:00
Isaiah Odhner 424e1e11bd Update os-gui to pre-release version
- Fixes dragging windows with Eye Gaze Mode with special pointerId === 1234567890 logic for jspaint
- Improves performance with zooming/panning by reducing unnecessary DOM updates (specifically with the code for closing menus when you click outside of them)
- Fixes random key misinterpretation like F6 as 'u' in the menus, due to keyCode being interpreted as ASCII (case-insensitively); it now uses key instead of keyCode
- Menu item checkboxes and submenu indicators are now done in CSS, so need to be included in the Modern theme.
2021-12-08 09:50:18 -05:00
Isaiah Odhner 24fde9eb1d Clean up, and fix Fonts box icons in Modern theme 2021-12-08 08:48:16 -05:00
Isaiah Odhner b3c992a260 Fix disabled inset filter for font box button 2021-12-08 06:21:57 -05:00
Isaiah Odhner 1c5c9480a6 Switch to points (pt) for font size 2021-12-08 06:11:54 -05:00
Isaiah Odhner 150c355b6b Add aria-label and aria-description to font box controls 2021-12-08 06:07:20 -05:00
Isaiah Odhner 80084ef95d Fix contrast of button icons in Dark theme (use theme colors) 2021-12-08 05:57:27 -05:00
Isaiah Odhner a4e94514b1 Style Fonts box 2021-12-08 05:16:28 -05:00
Isaiah Odhner 378d7677ed Disable changing palette when saving/opening indexed color images 2021-12-08 00:38:11 -05:00
Isaiah Odhner 6e571e4648 Disable File System Access API 2021-12-08 00:38:07 -05:00
Isaiah Odhner 32155e10c1 Limit news update image widths 2021-12-08 00:04:58 -05:00
Isaiah Odhner a546266041 Add quirky promo image 2021-12-07 23:51:44 -05:00
Isaiah Odhner 90c671f475 Prevent text selection in the status bar via the Project News window 2021-12-07 23:51:44 -05:00
Isaiah Odhner bddda00191 Fix: allow selecting text in Project News 2021-12-07 23:51:44 -05:00
Isaiah Odhner 0cc493afc1 Clarify docking with wording and an image
An animation would be more helpful, or maybe even an interactive tutorial where it highlights the click region in the actual app (it might have to hide the news to do that though.)
2021-12-07 23:51:44 -05:00
Isaiah Odhner 1fbffa09ea Add error message example image 2021-12-07 23:51:44 -05:00
Isaiah Odhner f27599f569 Copyediting... 2021-12-07 23:51:44 -05:00
Isaiah Odhner 21cf9139d3 Whip that llama 2021-12-07 21:16:11 -05:00