Skip to content

Commit

Permalink
Update comment for retrieveMaxCanvasArea x3
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenjaHorbach committed Oct 10, 2023
1 parent 83c0093 commit 1e2b7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/CanvasSize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import ONYXKEYS from '../../ONYXKEYS';
import * as Browser from '../Browser';

/**
* Calculate the max area of canvas on this specific platform and save it in onyx.
We're limiting the maximum value on mobile web to prevent a crash related to rendering large canvas elements.
More information at: https://github.com/jhildenbiddle/canvas-size/issues/13
* Calculate the max area of canvas on this specific platform and save it in onyx.
*/
function retrieveMaxCanvasArea() {
// We're limiting the maximum value on mobile web to prevent a crash related to rendering large canvas elements.
// More information at: https://github.com/jhildenbiddle/canvas-size/issues/13
canvasSize
.maxArea({
max: Browser.isMobile() ? 8192 : null,
Expand Down

0 comments on commit 1e2b7f4

Please sign in to comment.