Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#15327 closed defect (fixed)

dojox.mobile.ValuePickerSlot: touching the "+" or "-" buttons, the value may increment/decrement forever

Reported by: Adrian Vasiliu Owned by: ykami
Priority: high Milestone: 1.8
Component: DojoX Mobile Version:
Keywords: Cc: Eric Durocher, cjolif
Blocked By: Blocking:

Description

On mobile devices, when touching the "+" or "-" buttons of a dojox.mobile.ValuePickerSlot? the value keeps incrementing/decrementing as long as you don't release the button (auto-repeat effect). So far so good, but sometimes the value keeps incrementing/decrementing even after releasing the button.

How to reproduce:

  1. Launch demos/mobileGallery/demos-android.html
  2. Touch "Picker" in the left-side list.
  3. Touch the "+" button of the year and do not release for some time, then release, or slide outside the button then release.

=> Sometimes (quite often, the value keeps incrementing. The same holds for the "-" buttons.

Reproduced on Galaxy S T959 (T-mobile version) Android 2.2, and Galaxy Tab Android 2.2.

Workaround: Touching again a "+"/"-" button brings the slot back to an usable state.

Note that this widget is new in trunk (Dojo 1.8); it does not exist in the 1.7 branch.

Attachments (1)

patch15327.patch (1.2 KB) - added by Adrian Vasiliu 7 years ago.
Adrian Vasiliu, IBM, CCLA

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by Adrian Vasiliu

Attachment: patch15327.patch added

Adrian Vasiliu, IBM, CCLA

comment:1 Changed 7 years ago by cjolif

Cc: Eric Durocher cjolif added

comment:2 Changed 7 years ago by ykami

Resolution: fixed
Status: newclosed

In [28540]:

Fixes #15327 Clears the fail-safe timer on touch events. clearTimeout had to be used to clear an interval. Thanks Adrian for the patch. (There was one more place to fix in addition to the patch) !strict

comment:3 Changed 7 years ago by ykami

Milestone: tbd1.8
Priority: undecidedhigh
Note: See TracTickets for help on using tickets.