Commit Graph

94 Commits

Author SHA1 Message Date
Adam Bradley
a6c47cd3bf fix(platform): Fix Platform.showStatusBar so it can be used multiple times, closes #702 2014-02-28 23:31:13 -06:00
Adam Bradley
cfbb9d6002 jshint fix 2014-02-28 10:53:41 -06:00
Adam Bradley
2565000564 fix(list): Drag to expose list option buttons, closes #701 2014-02-28 10:42:08 -06:00
Adam Bradley
631208f1d8 _checkPlatforms refactor 2014-02-24 22:05:00 -06:00
Adam Bradley
b051fa7c9f platform test fix 2014-02-24 14:44:59 -06:00
Adam Bradley
7a3930f6ae improve platform/version/grade fallbacks with user-agents 2014-02-24 13:42:33 -06:00
Adam Bradley
fcd0fa73c4 fix(platform): Update ionic.Platform.is() to check all platforms, closes #604 2014-02-23 21:58:17 -06:00
Adam Bradley
591dbc3fec changed gestures to add .disable-user-behavior instead of multiple styles 2014-02-20 21:26:10 -06:00
Adam Bradley
b69b40c826 feat(grade): Set grade in body class depending on platform performance
First draft of how devices play out:

.grade-a:
- iOS
- >= Android 4.4

.grade-b:
- Android >= 4 && < 4.4

.grade-c:
- Android < 4
2014-02-20 20:41:48 -06:00
Adam Bradley
575cb1cbb9 avoid document.createElement('div') in css polyfill 2014-02-20 15:49:30 -06:00
Adam Bradley
52671c18f9 fix(transform): Polyfill style.transform to work w/ non-webkit 2014-02-20 15:40:12 -06:00
Adam Bradley
2a68d0b5b6 increase REMOVE_PREVENT_DELAY by 50ms 2014-02-20 10:35:15 -06:00
Adam Bradley
08dcca9ffb fix jshint 2014-02-18 21:57:04 -06:00
Adam Bradley
0421b7b450 Minimal classList polyfill added 2014-02-18 21:54:15 -06:00
Adam Bradley
ec8862a7cc tap polyfill removeClickPrevent and label fixes 2014-02-18 13:27:14 -06:00
Adam Bradley
62fefc3c2d click/tap refactor 2014-02-18 09:03:10 -06:00
Andy Joslin
d056ad1fef perf(animations): throttle calls to requestAnimationFrame
Closes #582
2014-02-17 17:26:34 -05:00
Adam Bradley
71ea118e4d range.getBoundingClientRect check for null, fixes #580 2014-02-17 10:44:05 -06:00
Andy Joslin
17cc040896 fix(anchorScroll): find offset of nested elements correctly
Closes #618
2014-02-17 10:20:39 -05:00
Adam Bradley
f736ae510e blur active input w/ setTimeout 2014-02-16 22:07:19 -06:00
Andy Joslin
0c52fd2673 chore(travis): remove console.log from *all* ionic js files
Closes #586
2014-02-13 12:28:44 -05:00
Adam Bradley
91fbcdc130 fix to prevent ghostclick of an input under a modal 2014-02-13 10:00:41 -06:00
Adam Bradley
fc8ab4b8ea fix(click): event.preventDefault() when setting focus() on an input, closes 583 2014-02-13 01:46:51 -06:00
Andy Joslin
9327ac71c7 fix(android): when keyboard comes up, ensure input is in view
This requires us to set fullscreen="false" in our cordova apps.

Uses the resize event to determine when the keyboard has been shown,
then broadcasts an event from the activeElement: 'scrollChildIntoView',
which is caught by the nearest parent scrollView.  The scrollView will
then see if that element is within the new device's height (since the
keyboard resizes the screen), and if not scroll it into view.

Additionally, when the keyboard resizes the screen we add a
`.hide-footer` class to the body, which will hide tabbars and footer
bars while the keyboard is opened.

For now, this is android only.

Closes #314.
2014-02-12 09:45:35 -05:00
Adam Bradley
2132d292e7 fix(click): Clicks firing twice, closes #573 2014-02-10 13:36:39 -06:00
Andy Joslin
a970f0bdc3 feat(domUtil): add getPositionInParent function
Find an element's offset, then add it to the offset of the parent
until we are at the direct child of parentEl.
Use-case: find scroll offset of any element within a scroll container
2014-02-09 11:36:15 -05:00
Adam Bradley
5ebbbab5e7 run tapPolyfill for mouse pointerType too 2014-02-06 13:58:53 -06:00
Adam Bradley
e96a77e5ac wrap exitApp in cordova ready 2014-02-05 20:49:36 -06:00
Andy Joslin
479175bf5d refactor(view): use nextUid from angular to generate unique ids
Math.random() is unreliable, produces duplicates, and numbers can
overflow if you use them for long enough.
2014-02-04 08:46:02 -05:00
Adam Bradley
00f6b17b7f toggle/checkbox tap improvements 2014-02-01 00:15:10 -06:00
Adam Bradley
7352be9010 set major and minor platform versions in body css 2014-01-31 20:57:26 -06:00
Adam Bradley
f37b196ff8 refactor ionic.Platform methods 2014-01-31 20:36:39 -06:00
Adam Bradley
25a9e527af ionic.Platform.exitApp(), always run onPlatformReady() 2014-01-31 11:55:31 -06:00
Adam Bradley
2add26afbb readyCallbacks array and platform() method to get name 2014-01-31 10:45:31 -06:00
Adam Bradley
b20ce800ab fallback for browsers that don't support createEvent('CustomEvent') 2014-01-30 20:38:57 -06:00
Adam Bradley
a78a56898c Merge pull request #471 from RangerRick/470-customevent-polyfill
#470 change the CustomEvent polyfill to work with older browsers
2014-01-30 18:28:42 -08:00
Adam Bradley
e231ba0ed5 correct reference to hammer.js 2014-01-30 12:28:11 -06:00
Adam Bradley
aac82a1ebb initMouseEvent instead of MouseEvent, label ghost click fixes 2014-01-29 19:59:44 -06:00
Adam Bradley
4354828ce1 ng-click fixes 2014-01-29 11:20:38 -06:00
Adam Bradley
64b3181732 simplify click simulation 2014-01-28 11:25:22 -06:00
Adam Bradley
ac7a061ca3 tap detection updates 2014-01-28 11:10:05 -06:00
Benjamin Reed
13ec3bce5a #470 change the CustomEvent polyfill to work with older browsers 2014-01-24 20:43:21 -05:00
Max Lynch
050870e5f4 Fixed #458 2014-01-22 23:12:50 -06:00
Adam Bradley
833fee6b18 android click firing twice fix 2014-01-22 10:17:05 -06:00
Adam Bradley
76fbd2dd5d do not uncheck a checked radio 2014-01-22 10:15:14 -06:00
Adam Bradley
73cad15ed2 checkbox/radio/toggle updates 2014-01-21 16:51:25 -06:00
Adam Bradley
7f7ae95498 tapPolyfill alreadyHandled fixes 2014-01-20 15:30:48 -06:00
Adam Bradley
19ac6188aa created Platform.fullScreen and Platform.showStatusBar 2014-01-16 13:52:12 -06:00
Adam Bradley
5c80fc1cd9 update platform ready listeners 2014-01-16 00:25:04 -06:00
Adam Bradley
64d8fd207a platform detect updates 2014-01-14 00:59:25 -06:00