mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
feat(ripple): ability to disable ripple effect w/ querystring
This commit is contained in:
@ -19,7 +19,9 @@ export class RippleEffect implements ComponentInterface {
|
||||
*/
|
||||
@Method()
|
||||
addRipple(pageX: number, pageY: number) {
|
||||
rIC(() => this.prepareRipple(pageX, pageY));
|
||||
if (!location.search.includes('ionic:animate=false')) {
|
||||
rIC(() => this.prepareRipple(pageX, pageY));
|
||||
}
|
||||
}
|
||||
|
||||
private prepareRipple(pageX: number, pageY: number) {
|
||||
|
Reference in New Issue
Block a user