device_desktop.go 355 B

123456789101112
  1. //go:build !ios && !android && !wayland
  2. // +build !ios,!android,!wayland
  3. package mobile
  4. import "fyne.io/fyne/v2"
  5. const tapYOffset = 0 // no finger compensation on desktop (simulation)
  6. func (*device) SystemScaleForWindow(_ fyne.Window) float32 {
  7. return 2 // this is simply due to the high number of pixels on a mobile device - just an approximation
  8. }