Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25248] Windows: touchstart and touchend do not fire for button

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2017-09-18T04:55:16.000+0000
Affected Version/sRelease 6.2.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-09-07T15:05:35.000+0000
Updated2018-08-02T22:20:06.000+0000

Description

Description

touchstart and touchend dont fire on a button
var _window = Ti.UI.createWindow();
var button = Ti.UI.createButton({
    top: '10%',
    bottom: '10%',
    left: '10%',
    right: '10%',
    backgroundColor: 'black'
});

button.addEventListener('touchmove', function() {
    Ti.API.info('touchmove fired');
    button.title = 'touchmove fired'
});
button.addEventListener('touchstart', function() {
    Ti.API.info('touchstart fired');
    button.title = 'touchstart fired'
});
button.addEventListener('touchend', function() {
    Ti.API.info('touchend fired');
    button.title = 'touchend fired'
});

_window.add(button);
_window.open()

Steps to reproduce

Add the code above to an app.js and build for Windows

Click the button

Actual

No touchstart or touchend events

Expected

Should see touchstart and touchend

Comments

  1. Kota Iguchi 2017-09-18

    These events are [disabled explicitly](https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/UI/src/Button.cpp#L129) on Button actually. I saw a inconsistency on its pointer event handling (such as, touchstart is fired but no touchend fired etc) so I decided to remove the support for it. I would resolve this as "Won't Fix".
  2. Eric Merriman 2018-08-02

    Closing old "Won't fix" tickets. If you disagree, please reopen.

JSON Source