material icon indicating copy to clipboard operation
material copied to clipboard

Android Device: Animation Performance, md-icon issue on Chrome

Open Omkaraaa opened this issue 11 years ago • 45 comments

I am building Android application using Angularjs, Angular material and Cordova. Can somebody help on below issues. Can someone suggest tips/tricks to improve/fix below points?

Issue ~1: Animations are very very slow on android device. Mainly ripple effects/animations given to md-button are slow. I have tried disabling hardwareAcceleration for cordova still it does not works. See below Html . Code:

code

Issue ~2: Multiple click on md-button makes application not responding. Does not give intuition of which button is active or focus.

Issue ~3: I observed that with Crome browser on Laptop, there are few problems for demo site also (https://material.angularjs.org), md-button icons are not visible. However same works in firefox. May be md-icon has changed in new build? See below image:

image

Omkaraaa avatar Jan 13 '15 07:01 Omkaraaa

An option to have only one ripple effect at a time would be great for mobile devices.

gngeorgiev avatar Jan 14 '15 12:01 gngeorgiev

@gngeorgiev : that is brilliant idea. Are you facing same problem? Have you implemented it?

Omkaraaa avatar Jan 15 '15 05:01 Omkaraaa

@Omkaraaa No, not yet, but surely I will give it a go if this issue has no progress since multiple ripple effects crash my application with Crosswalk on Android 5.0

gngeorgiev avatar Jan 15 '15 08:01 gngeorgiev

@Omkaraaa @ThomasBurleson You can take a look at #1204 and see if it will help in this scenario.

gngeorgiev avatar Jan 15 '15 19:01 gngeorgiev

I just visited demo site from a cordova application. Angular-material's animation is really slow in crodva webclient.

nafeezabrar avatar Feb 12 '15 12:02 nafeezabrar

I agree with the op. I am using buttons on a side nav and it gets ugly when you combine (button ripple + close sidenav + load view w/data).

I look forward to future improvements

atentis avatar Mar 09 '15 03:03 atentis

I didn't want to open an other issue, because I guess it's the same problem. The sidenav animation is very slow and the toggle button also. I use phonegap/cordova.

FYI: After mutiple toggle of the sidenav, the perfomance kind of increase and become usable.

Thanks!

alexhuot1 avatar Mar 22 '15 01:03 alexhuot1

+1

uriva avatar May 14 '15 23:05 uriva

yes. the button and sidenav are too slow on mobile. I cannot use material angularjs on mobile until the performance improved.

iyoukeyyewei avatar Jun 05 '15 07:06 iyoukeyyewei

For me the slowness appears on desktop as well.

uriva avatar Jun 05 '15 09:06 uriva

@robertmesserle - do you have time to investigate this today?

ThomasBurleson avatar Jun 05 '15 15:06 ThomasBurleson

@ThomasBurleson I'm not in the office and don't have access to an Android device today, so probably not.

robertmesserle avatar Jun 05 '15 15:06 robertmesserle

Tested with 0.9.4 +1 ripple is extremely slow in custom Android Tablet with the following configuration for reference: Android 4.2.2 CPU: ARMv7 1.6GHz (tested in full speed with latest Chrome) Resolution: 1366 x 720

+1 ripple is fairly slow in a local system that is actually a desktop, not sure if it is related to GPU or CPU, the configuration for reference: Windows 7, 32Bit Display: Intel Q965/Q963 Express Chipset Family CPU: Intel E5700 Dual Pentium 3.00G Resolution: 1024 x 768

In these machines, the ripple respond differently, normally in a Desktop environment, one click will trigger one ripple is expected.

  • sometimes one click/touch trigger one ripple (true for Intel i5 Desktop with builtin graphic card, Android with App running in Webview)
  • sometimes one click/touch will trigger the ripple but the ripple will not be staying if it is not long pressing(click/touch) (true for above Desktop, Android with Chrome)
  • when click consecutively, the button color of the background is stuck in dark ripple color without restoration (true for any Android with webview, not tested in desktop because the touch screen respond too slow in our case, might be hardware related)

simongcc avatar Jun 22 '15 04:06 simongcc

I confirm very slow sidenav and button animation on Android phonegap/cordova. I guess this needs to be fixed, since Material Design is "mobile first".

MilosStanic avatar Jun 23 '15 10:06 MilosStanic

Device: Samsung Galaxy s6 Angular version: 1.4.1 Material version 0.10

I have a samsung galaxy s6 android, which should be far more than enough power for this framework. I see lagging issues on the sidenav opening and scrolling. I also see lagging issues when i click buttons, for instance I have a menu with 3 menu buttons, I click my logout button and the ripple is slow and then pauses at the end of the animation for about 2 seconds before executing the ng-click. Desktop works great for me, but I have a gaming rig so it is above an average business's computer.

kevindstanley1988 avatar Jun 26 '15 11:06 kevindstanley1988

I'm experiencing similar things on chrome with ubuntu

On Fri, Jun 26, 2015, 15:02 kevindstanley1988 [email protected] wrote:

Device: Samsung Galaxy s6 Angular version: 1.4.1 Material version 0.10

I have a samsung galaxy s6 android, which should be far more than enough power for this framework. I see lagging issues on the sidenav opening and scrolling. I also see lagging issues when i click buttons, for instance I have a menu with 3 menu buttons, I click my logout button and the ripple is slow and then pauses at the end of the animation for about 2 seconds before executing the ng-click. Desktop works great for me, but I have a gaming rig so it is above an average business's computer.

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/1177#issuecomment-115655281.

uriva avatar Jun 26 '15 16:06 uriva

The same issues.

cleever avatar Jun 26 '15 17:06 cleever

This is really a problem.

From my point of view good performance in a wrapper like Cordova is essential. Otherwise the whole mobile platform is out of reach when using this framework.

Really like it though so hoping this issue will get attention.

Good luck.

makersio avatar Jun 27 '15 17:06 makersio

same issue

sckoh avatar Jun 28 '15 09:06 sckoh

+1 for getting angular-material performing on phones!
hey c'mon, you removed my helpful comment without even explaining why. thats the last time i contribute to angular-material... :-1:

plato-cambrian avatar Jul 03 '15 01:07 plato-cambrian