Firefox ESR doesn't support `context.getTransform`
See original GitHub issueStack trace
m.getTransform is not a function:
getTransform (renderer/renderScene.ts:47:42)
componentDidUpdate (index.tsx:2301:37)
p.focus&&p.focus();for (../node_modules/react-dom/cjs/react-dom.production.min.js:251:462)
unstable_runWithPriority (../node_modules/scheduler/cjs/scheduler.production.min.js:18:436)
dg (../node_modules/react-dom/cjs/react-dom.production.min.js:120:324)
Xj (../node_modules/react-dom/cjs/react-dom.production.min.js:244:436)
Lj (../node_modules/react-dom/cjs/react-dom.production.min.js:223:419)
ig (../node_modules/react-dom/cjs/react-dom.production.min.js:121:114)
unstable_runWithPriority (../node_modules/scheduler/cjs/scheduler.production.min.js:18:436)
dg (../node_modules/react-dom/cjs/react-dom.production.min.js:120:324)
ig (../node_modules/react-dom/cjs/react-dom.production.min.js:121:60)
dg (../node_modules/react-dom/cjs/react-dom.production.min.js:120:495)
Rg (../node_modules/react-dom/cjs/react-dom.production.min.js:214:155)
isMounted (../node_modules/react-dom/cjs/react-dom.production.min.js:133:236)
setState (../node_modules/react/cjs/react.production.min.js:13:230)
syncActionResult (index.tsx:704:11)
json=([0-9]+), (index.tsx:774:13)
tryCatch (../node_modules/regenerator-runtime/runtime.js:45:39)
context.dispatchException (../node_modules/regenerator-runtime/runtime.js:271:21)
function (../node_modules/regenerator-runtime/runtime.js:97:20)
asyncGeneratorStep (../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3:24)
_next (../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:25:8)
localStorage
{"i18nextLng":"en"}
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
CanvasRenderingContext2D.getTransform() - Web APIs | MDN
getTransform () method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.
Read more >Implement canvas getTransform() and setTransform ...
Canvas v5 introduces the currentTransform property which let us set and retrieve the current transformation matrix from a 2d context. It takes and...
Read more >Cannot transfer bookmarks to older Firefox esr. Why?
(menu bar) Help menu > Restart with Add-ons Disabled. and OK the restart. A small dialog should appear. Click "Start in Safe Mode"...
Read more >Mozilla Firefox Release Notes
Firefox Bug Fixes ; caretOffset for textarea should be -1 when textarea doesn't have a focus · Remove dead default cases. · Crash...
Read more >mozilla-unified: changeset 464432 ... - Mercurial
If this is never called, the context - // defaults to false (not opaque). ... The code in + // WebRenderScrollDataWrapper::GetTransform() is responsible...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There’s still two cases of
getTransform
inzoom.ts
:https://github.com/excalidraw/excalidraw/blob/e1e2249f577d73229902ad23ad76b2c880a39350/src/scene/zoom.ts#L10-L11
Also, AFAIK
setTransform
still affects Firefox Mobile:https://github.com/excalidraw/excalidraw/blob/e1e2249f577d73229902ad23ad76b2c880a39350/src/components/App.tsx#L804
But that one should be simple to fix.
Oops, I should have grepped the entire codebase. Both of them should be easy to fix.