eclipsesource / eclipsesource/tabris-js

"tap" on scroll view children sometimes not fired when Samsung Keyboard is open

Open
#1,565 0 comments 0 reactions 0 assignees View on GitHub
android bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description
When a TextInput inside a ScrollView has focus and a ScrollView child with a `"tap"` event listener is tapped, the keyboard closes as expected, but sometimes no `"tap"` event is fired.

This works as expected when using other keyboards, for example Gboard or SwiftKey.

### Expected behavior
ScrollView children should always fire a "tap" event when tapped on, regardless of whether a keyboard is opened.

### Environment

- Tabris.js version: 2.2.0
- Device: Galaxy S8
- OS: Android 7.0

### Code snippet
To reproduce, focus the input field and tap on the blue composite.
```javascript
const {Composite, ScrollView, TextInput, ui} = require('tabris');

ui.contentView.append(
new ScrollView({left: 0, top: 0, right: 0, bottom: 0}).append(
new Composite({top: 500, left: '20%', right: '20%', height: 60, background: 'blue'})
.on('tap', () => console.log('tapped')),
new TextInput({top: 'prev() 10', left: '20%', right: '20%'})
)
);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.