Slow click behavior

Bug #1225482 reported by Daniel Beck
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu HTML5 UI SDK
In Progress
High
Unassigned

Bug Description

The "back-button" and "List.append()" react to click events.

Howerver, mobile browsers will wait approximately 300ms after a user tapped a button to fire the click event. To provide a better user experience, these two components shoud use the same approach as implemented by the "FastButton"-prototype.

Tags: toolbar

Related branches

Revision history for this message
Adnane Belmadiaf (daker) wrote :

Maybe we just need to attach the FastButton to the body instead of each component ?

Changed in ubuntu-html5-theme:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Daniel Beck (d-danielbeck) wrote :

Just attaching the FastButton to the body instead of each component might be difficult: the handler would have to compute the right target mode. Using FastButton for each list element might be much easier.

For the backbutton, using touch-even could be realized as follow:

==== old code ====
a.onclick = function (e) {
            if (self._pageStack.depth() > 1)
  self._pageStack.pop();
            e.preventDefault();
 }.bind(self);
    };

=== new code ===
new FastButton(a,function (e) {
            if (self._pageStack.depth() > 1)
  self._pageStack.pop();
            e.preventDefault();
 };
    });

(remark: bind(self) is not called anymore. It that behavior must be kept, the FastButton constructor should be extended with a "self" argument.)

Adnane Belmadiaf (daker)
tags: added: toolbar
Adnane Belmadiaf (daker)
Changed in ubuntu-html5-theme:
status: Triaged → In Progress
Adnane Belmadiaf (daker)
Changed in ubuntu-html5-theme:
assignee: nobody → Adnane Belmadiaf (daker)
Adnane Belmadiaf (daker)
Changed in ubuntu-html5-theme:
assignee: Adnane Belmadiaf (daker) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.