mirror of
https://github.com/heyman/heynote.git
synced 2026-02-06 11:27:25 +00:00
Tweak minimum dialog and brush sizes
This commit is contained in:
parent
5fdced8afa
commit
9a36ccc860
@ -142,7 +142,7 @@
|
||||
this.captureHistory(true)
|
||||
|
||||
// calculate brush width
|
||||
const suggestedWidth = Math.round(Math.max(1, Math.min(15, width / 300)))
|
||||
const suggestedWidth = Math.round(Math.max(3, Math.min(15, width / 300)))
|
||||
this.brushWidth = this.normalizeBrushWidth(suggestedWidth)
|
||||
this.canvas.freeDrawingBrush.width = this.brushWidth
|
||||
//console.log("brush width:", this.brushWidth)
|
||||
@ -427,8 +427,8 @@
|
||||
},
|
||||
|
||||
updateDialogSize() {
|
||||
const minWidth = 400
|
||||
const minHeight = 300
|
||||
const minWidth = 440
|
||||
const minHeight = 320
|
||||
const dpr = window.devicePixelRatio || 1
|
||||
const logicalWidth = this.imageWidth / dpr
|
||||
const logicalHeight = this.imageHeight / dpr
|
||||
|
||||
Loading…
Reference in New Issue
Block a user