Skip to content

Multitouch results into first finger not being released. #61

Closed
@dbeulen

Description

@dbeulen

I'm using flutter pi on a raspberry pi official touchscreen. However, when you touch the screen whenever a different finger is pressing a widget, the widget will never be released any more. This is tested on a slider and a card, but on both widgets the issue exists.

Flutter version 1.17.3
Flutter-pi version: latest commit on master 94f38d3
Flutter-pi engine: latest on engine binaries branch dcf0d22

To reproduce:

  1. Flutter create test_app
  2. Replace homepage build method with this code:
@override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Slider(
          value: _sliderValue,
          min: 0.0,
          max: 1.0,
          activeColor: Colors.red,
          inactiveColor: Colors.black,
          onChanged: (double newValue) {
            setState(() => _sliderValue = newValue);
          },
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
  1. Build and run the application
  2. With one finger, press the slider and move it for a bit (a dark red shadow will appear around the slider)
  3. While still pressing the slider, touch the screen with a second finger.
  4. Release both fingers.
  5. The shadow will still be shown around the slider, indicating it is still pressed.

With a Card this issue is a bigger problem, because i cannot recognise a new touch after the problem arises.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions