Skip to content

Broken NewMultiLineEntry scrolling on Android #5915

@maciej-piatek

Description

@maciej-piatek

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

On my phone (Xiaomi Redmi 12) the scroll on NewMultiLineEntry is unusable. It works fine on PC with mouse scroll but on mobile it does not behave like scroll would.
When I try to scroll down by swiping up, it doesn't move.
It is possible to scroll down by highlighting the text in the entry and then carefully swiping down, but thats not how it should work.

How to reproduce

Build the code from example code.

Screenshots

No response

Example code

package main

import (
	"bytes"
	"crypto/aes"
	"crypto/cipher"
	"encoding/base64"
	"fmt"
	"io"
	"os"
	"path/filepath"
	"strconv"
	"strings"

	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/app"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/dialog"
	"fyne.io/fyne/v2/driver/desktop"
	"fyne.io/fyne/v2/storage"
	"fyne.io/fyne/v2/theme"
	"fyne.io/fyne/v2/widget"
)


func main() {
	//Initializers//
	a := app.New()
	w := a.NewWindow("snippet")

	entry1 := widget.NewMultiLineEntry()
	entry1.Wrapping = fyne.TextWrapWord

	entry1.SetPlaceHolder(" ")


	//-----------------------------------//

	//Size and run//
	scroll1 := container.NewScroll(entry1)
	w.SetContent(scroll1)

	w.ShowAndRun()
	//-----------------------------------//

}

Fyne version

2.6.1

Go compiler version

1.22.0

Operating system and version

Compiled and built on Windows 10 Pro / Tested on Android 14 (HyperOS 1.0.10.0.UMXEUXM)

Additional Information

I have already reported this on fyne discord server and was told to do it here too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions