Commit Graph

12 Commits

Author SHA1 Message Date
Andy Joslin
b772a94de5 style(activator): remove console.log 2014-04-29 06:10:33 -06:00
Max Lynch
040af8245d fix(listView): fixed active state on scroll 2014-04-28 13:25:30 -05:00
Andy Joslin
8e3a3d0b2d activator: do not activate if tapRequiresNativeClick
Addresses #1202
2014-04-25 07:05:27 -06:00
Adam Bradley
d0047cda44 refactor(tap): Refactor tap system for improved tap/click/keyboard/scroll/focus
Overhaul of the tap system so the keyboard does not cover up focused
inputs, correctly bring up the keyboard on text input focus, disabling
focus during scroll, disabling clicks after a hold then scroll,
removing 300ms delay without additional event handlers on each element,
etc. Refactored the tap/click/scroll/activator events for more
testability, along with adding more tests.
2014-04-17 08:26:25 -05:00
Adam Bradley
cb602b587b fix(tap): Prevent clicks from firing after scrolling, #579 2014-04-04 12:28:42 -05:00
Adam Bradley
3ee5ea77a6 fix(tap): Deactivate elements during scroll at the same time click is ignored, #997
Previously I disabled the activation class immediately on a touchmove,
where as the click will still work if you touchstart and touchend
within a few pixels of each other. So visually it may have looked like
the click shouldn't have worked. I just updated it so the use the same
numbers. For example, if you hold down an item and move just 5 pixels,
the item will stay active (before it wouldn't have), and the click will
fire. But at the same time, if you hold down an item, and move a larger
distance, once it realizes that it went farther than 6 pixels it'll not
allow a click to happen, AND it'll not show the item as being active.
2014-04-03 23:24:31 -05:00
Adam Bradley
870dcd6f99 fix(active): Taps/clicks now use .activated instead of .active, closes #913
Both .active and .activated classes exist within the css now. When a
button/link/item is “active”, the .activated class gets added and
removed. This is so Ionic is not removing any user defined .active
classes, but also so users can use Ionic’s active classes (but not have
to worry about them being removed automatically by Ionic). Styled the
same by default, but easily overridden.
2014-03-27 21:26:59 -05:00
Adam Bradley
c355114365 prevent double active states on touch 2014-03-21 14:13:14 -05:00
Adam Bradley
423f9e4f77 fix(active): Updated which elements to set active class along w/ tests, closes #857 2014-03-21 09:08:40 -05:00
Adam Bradley
97e69f0464 only add move listener for pointer type started with, touch or mouse 2014-03-20 14:19:03 -05:00
Adam Bradley
bd4c1f48a5 modify how elements remove active class 2014-03-18 08:48:58 -05:00
Adam Bradley
8c55e280ba fix scrolling through list causes "active" class on items 2014-03-17 13:47:04 -05:00