mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +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()
|
@Method()
|
||||||
addRipple(pageX: number, pageY: number) {
|
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) {
|
private prepareRipple(pageX: number, pageY: number) {
|
||||||
|
Reference in New Issue
Block a user