Commit Graph

225 Commits

Author SHA1 Message Date
Tim Lancina
ad08b341ce fix(keyboard):don't setKeyboardShow on date/time inputs
Closes #1638.
2014-06-18 14:33:34 -05:00
Adam Bradley
a057734631 fix(cancelAnimationFrame): polyfill in ionic.DomUtil 2014-06-16 12:49:54 -05:00
Andy Joslin
ae8136d21d fix(utils/dom): do not add rAF polyfill to window
A pull request (#1430) was merged that added a requestAnimationFrame polyfill to
the window on platforms that do not have rAF.  This was overlooked.
This now has created conflicts with Angular 1.2.17 on Android browsers
that do not have requestAnimationFrame.

The problem was that a polyfill for requestAnimationFrame was put onto the
window for Android <4.3. AngularJS would then check if
window.requestAnimationFrame existed.  Angular's check passed, and then
it would try to use cancelAnimationFrame which was undefined.

Now, nothing on the window is changed.
2014-06-16 16:21:33 +00:00
Adam Bradley
8da9f34ba2 fix(tap): error when releasing outside of browser
Closes #1612
2014-06-12 20:23:13 -05:00
Andrew Joslin
05dd7b1864 feat(ionic.Platform): add ionic.Platform.setGrade() function
Closes #1104
2014-06-11 11:15:33 -06:00
Adam Bradley
772459df1e fix(tap): ignoreScrollStart w/ data-tap-disabled
If an element, or one of its ancestors, has the `data-tap-disabled`
attribute, then it should not start the scroll. Closes #1505
2014-06-10 10:18:18 -05:00
Adam Bradley
f5bb023ef7 fix(tap): cancel simulated click w/ hold events
Gesture hold event and ionic’s tap will both fire since the tap has no
strict duration between its start and end (a click will always fire no
matter how long the press is held). If a hold event fires from
ionic.Gesture, then the simulated click which would fire on
touchend/mouseup should be canceled.
2014-06-09 22:00:35 -05:00
Adam Bradley
a43980bbcc Merge pull request #1430 from malixsys/patch-4
fix(rAF): fixing requestAnimationFrame & cancelAnimationFrame
2014-06-05 20:01:16 -07:00
Jared Smith
e88659c6f8 fix(ionScroll): let zoom work on android devices
Closes #1440
2014-06-04 13:56:26 -06:00
Ryan Gonzalez
f02bd6c659 docs(domUtil): Correcting getParentOrSelfWithClass documentation. It previously duplicated getParentWithClass. Closes #1535 2014-06-02 12:38:05 -05:00
Tim Lancina
665a581cb0 improve keyboard docs
Closes #957.
2014-05-21 09:04:45 -05:00
Andrew Joslin
3618109187 fix(requirejs): fix bug with loading order of angular & taps 2014-05-21 07:38:08 -06:00
Adam Bradley
7059b818ce fix(tap): select tag not working in IE
Cannot prevent default on mousedown in IE when the target is an option
or select element. Closes #1435
2014-05-20 09:13:17 -05:00
Tim Lancina
6f583c616f derp 2014-05-19 14:45:26 -05:00
Tim Lancina
2d78f93a74 deprecate native.showkeyboard and native.hidekeyboard 2014-05-19 14:43:25 -05:00
Andrew Joslin
3250d10da7 fix(scrollView): on desktop, mousewheel only scrolls the right scrollView
Closes #1376
2014-05-19 08:32:14 -06:00
Andrew Joslin
4a210130b4 fix(scrollView): stop memory-leak when destroying scrollView
Fixes #1096
2014-05-19 08:14:52 -06:00
M Alix
8319668890 Fixing requestAnimationFrame & cancelAnimationFrame
With the previous implementation, Chrome complains:
    "'webkitCancelAnimationFrame' is vendor-specific. Please use the standard 'cancelAnimationFrame' instead."
This fixes that by reusing (copy-paste) the code from angular.js
A better way would be to use ionic.requestAnimationFrame and ionic.cancelAnimationFrame everywhere, but that is more involved and risky...
2014-05-18 19:04:50 -04:00
Adam Bradley
473076b410 re-add larger release tolerance for buttons fix
#1378
https://github.com/driftyco/ionic/commit/1bfc85906f0b0a8839e22a4b8035890
c7099130c
2014-05-15 11:47:11 -05:00
Adam Bradley
29ee640701 fix(click): fix mouseup click for ion-option-button
To allow select elements to change options in Firefox, the simulated
tap click should not go through when the target is an `option` element.
However, the regex was too general and also prevented
`ion-option-button` on mouseup.
2014-05-15 09:43:20 -05:00
Andrew Joslin
1bfc85906f chore: revert tap tolerance fix for now 2014-05-14 16:35:08 -06:00
Adam Bradley
fab4a41d9a fix(scroll): larger release tolerance for buttons
Closes #1378
2014-05-14 13:08:21 -05:00
Tim Lancina
cb0d17c065 fix(keyboard): add link to plugin repo 2014-05-14 12:53:46 -05:00
Andrew Joslin
90e7395e62 fix($ionicLoading): do not flicker when showing long loading messages
Closes #1252
2014-05-14 10:48:43 -06:00
Adam Bradley
4f1145ca22 fix missing tagName for select checks 2014-05-14 09:57:30 -05:00
Adam Bradley
65749a40bb fix(select): select option in desktop Firefox
Closes #1251
2014-05-13 13:30:32 -05:00
Tim Lancina
373c0cd44f fix(scroll): scroll inputs correctly with footer 2014-05-13 13:10:26 -05:00
Adam Bradley
2736993083 feat(tap): Make TAP_RELEASE_TOLERANCE configurable
Setter for TAP_RELEASE_TOLERANCE so the default can be changed. Closes
#1362
2014-05-13 11:13:04 -05:00
Tim Lancina
fe01444f95 update keyboard docs with windowSoftInputMode info 2014-05-13 10:03:20 -05:00
Andrew Joslin
3c15b118ca fix(activator): properly activate elements nested inside an item.
Addresses #1373.

Before: if an `<a>`, `ng-click`, or `<button>` inside of a .item,
was clicked, the activator would walk up .item and activate it.

Now:  If an `<a>`, `ng-click`, or `<button>` inside of a
.item is clicked, the activator will activate that element.

Additionally, CSS was added so `a.item-content.activated` would look
activated.
2014-05-13 08:56:37 -06:00
Andrew Joslin
636ca94325 fix(e2e-tests): disable ionic-tap during e2e tests
Closes #1310
2014-05-13 07:04:09 -06:00
Adam Bradley
1a2e501f25 fix(tap): Normalize taps w/ pointer events also
Some browsers already remove the delay with certain settings, such as
the CSS property `touch-events: none` or with specific meta tag
viewport values. However, each of these browsers still handle clicks
differently, such as when to fire off or cancel the event (like
scrolling when the target is a button, or holding a button down). For
browsers that already remove the 300ms delay, consider Ionic's tap
system as a way to normalize how clicks are handled across the various
devices so there's an expected response no matter what the device,
platform or version. Additionally, Ionic will prevent ghostclicks which
even browsers that remove the delay still experience.
2014-05-12 15:13:44 -05:00
Tim Lancina
61c9c4571b account for elements under scroll view when resizing 2014-05-12 14:31:53 -05:00
Max Lynch
73d2eabc69 feat(animation): Javascript Animation Service 2014-05-12 13:07:58 -05:00
Tim Lancina
c944fe5944 add keyboard docs 2014-05-12 11:26:01 -05:00
Adam Bradley
5f2fdfdd07 fix(textarea): Allow scroll in textarea when focused
Closes #1280
2014-05-09 12:05:45 -05:00
Tim Lancina
b0cfe233a8 don't clear focusIn timer on focusOut 2014-05-09 11:39:34 -05:00
Adam Bradley
4928b996d6 set WP8 as a grade-b device 2014-05-09 09:33:35 -05:00
Tim Lancina
5be42bc3c7 add height=device-height on Cordova iOS 7.0 2014-05-09 09:17:04 -05:00
Adam Bradley
8730e62e62 fix(tap): Prevent different input focus after 300ms delay
If a text input is located in the same area as a button which was just
tapped, which was probably because of a view transition, the text input
gets focus 300ms later. This is an issue on Android because it also
fires off a mousedown event. Resolved by remembering the touchend
target then checking if it’s different from the mousedown target.
Closes #1370
2014-05-08 10:40:15 -05:00
Andrew Joslin
95d1aea4f1 chore(travis): re-enable jshint 2014-05-08 09:11:16 -06:00
Adam Bradley
57d66b2a2d style(jshint): jshint 2014-05-08 08:19:14 -05:00
Adam Bradley
6e32c2f880 Merge initial wp8 fixes 2014-05-07 15:47:35 -05:00
Adam Bradley
08e4b3d95b feat(platform): added isWindowsPhone() method 2014-05-07 14:48:36 -05:00
Adam Bradley
25c02a3f2c add msTransform and msTransition to CSS polyfill 2014-05-07 14:10:00 -05:00
Adam Bradley
98ee7ee293 chore(log): use console.log instead of .debug
Console statements get removed during builds, but when testing IE 10
does not support console.debug.
2014-05-07 13:42:48 -05:00
Adam Bradley
191464c98c fix(CustomEvent): fix IE CustomEvent polyfill
#1131 #1231 #861
2014-05-07 13:40:28 -05:00
Tim Lancina
5973ded3e1 add clearTimeout(keyboardFocusOutTimer) to plugin hidekeyboard handler 2014-05-07 11:53:17 -05:00
Andy Joslin
425ba247e5 docs(tap): fix typos 2014-05-06 09:26:21 -06:00
Adam Bradley
3b5248f22b data-tap-disabled not data-prevent-default 2014-05-06 10:21:34 -05:00