#12250 closed defect (fixed)
Support touch events in dijit._CssStateMixin
Reported by: | mgottli | Owned by: | evan |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Dijit | Version: | 1.6.0b1 |
Keywords: | 1.7-mobile | Cc: | Evan |
Blocked By: | Blocking: |
Description
It would be nice to update dijit._CssStateMixin to support the touch events for iPad, etc. This would be pretty easy to do and then the dojo buttons would behave better on touch devices.
Attachments (1)
Change History (11)
Changed 10 years ago by
Attachment: | _CssStateMixin.js added |
---|
comment:1 Changed 10 years ago by
Component: | General → Dijit |
---|---|
Milestone: | tbd → 1.7 |
Owner: | changed from anonymous to bill |
Status: | new → assigned |
Thanks for the patch. Some devices have both mouse and touch so it shouldn't be either/or, but rather and/or.
Oh also, can you attach patches in patch file format?
BTW long term I wanted to use the :active pseudo-selector in our CSS files, but it doesn't seem to works for touch events?
comment:2 Changed 10 years ago by
Cc: | evan added |
---|
May get this support automatically after Evan's dojo.touch work.
comment:3 Changed 10 years ago by
Keywords: | 1.7-mobile added |
---|
comment:4 Changed 10 years ago by
Owner: | changed from bill to evan |
---|---|
Status: | assigned → new |
Evan, you had patches to update dijit for touch support, right? So assigning this one to you.
comment:5 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [25151]) Fixes for dijit widgets on mobile:
- clicking blank area of screen to close dropdown
- clicking arrow icon to open dropdown for DateTextBox/ComboBox/etc.
- dragging BorderContainer splitter
- clicking slider bar to adjust slider value
- CSS active effect when pressing button
Unresolved mobile issues:
- have to click twice to close menu (first click doesn't even generate an onclick event, not sure why)
- opening TooltipDialog/Dialog/InlineEditBox doesn't focus [first] field
- Dialog position doesn't readjust when keyboard opened or phone orientation changed (portrait to landscape)
Changes:
- use dojo.touch.* rather than mousexxx events
- added press, move, release options for dojoAttachEvent, ex: dojoAttachEvent="press: _onMouseDown", that correspond to dojo.touch events
- remove e.touches[] normalization code since that's now handled by dojo/on.
Not adjusting:
- Editor since that has many issues on mobile.
- deprecated SplitContainer widget
comment:6 Changed 10 years ago by
Cc: | Evan added; evan removed |
---|
Updated to support touch events so styles are properly applied on dijit.form.Button on the iPad