Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

iOS - $digest or $apply only in progress when UI-Interaction done #2942

Closed
andi1984 opened this issue Jun 12, 2013 · 2 comments
Closed

iOS - $digest or $apply only in progress when UI-Interaction done #2942

andi1984 opened this issue Jun 12, 2013 · 2 comments

Comments

@andi1984
Copy link
Contributor

Hi,

I've a weird problem:

I use ng-class to load specific css styles based on a scope variable.

The problem is, under iOS $digest or $apply of these changes, done in a controller, aren't sometimes called until the user interacts with the view (scrolling or something). Sometimes it works, but sometimes the UI-State gets stucked.

Under Android the $digest or $apply are directly called when the variable changes. Everything works fine!

Is this is a known bug under iOS? How can I fix that really annoying problem? I'm aware that this is probably a problem with iOS itself, not with AngularJS. But I don't know how to fix that.

The only solution for me is to trigger an UI event to trigger $digest or $apply.

I also tried to call $digest or $apply manually, but this isn't solving the problem. Often the current UI state get stucked until I scroll the page down or up or rotate the phone. Reaaally annoying!

Can somebody help me with that? Any help is appreciated!

@andi1984
Copy link
Contributor Author

This is really weird. With a simple window.scrollTo() it works like a charm. But this can't be the only solution for this **** iOS problem...

@btford
Copy link
Contributor

btford commented Aug 24, 2013

As part of our effort to clean out old issues, this issue is being automatically closed since it has been inactivite for over two months.

Please try the newest versions of Angular (1.0.8 and 1.2.0-rc.1), and if the issue persists, comment below so we can discuss it.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants