device_wayland.go 300 B

123456789101112
  1. //go:build wayland
  2. // +build wayland
  3. package mobile
  4. import "fyne.io/fyne/v2"
  5. const tapYOffset = -4.0 // to compensate for how we hold our fingers on the device
  6. func (*device) SystemScaleForWindow(_ fyne.Window) float32 {
  7. return 1 // PinePhone simplification, our only wayland mobile currently
  8. }