mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
refactor(all): strict boolean conditions
This commit is contained in:
@ -190,7 +190,7 @@ export class Content {
|
||||
* Scroll to a specified X/Y location in the component
|
||||
*/
|
||||
@Method()
|
||||
async scrollToPoint(x: number | undefined, y: number | undefined, duration = 0): Promise<void> {
|
||||
async scrollToPoint(x: number | undefined | null, y: number | undefined | null, duration = 0): Promise<void> {
|
||||
const el = this.scrollEl;
|
||||
if (duration < 32) {
|
||||
if (y != null) {
|
||||
|
||||
Reference in New Issue
Block a user