Skip to content

Instantly share code, notes, and snippets.

@bulatie
Created March 25, 2020 09:34
Show Gist options
  • Save bulatie/952ffcff94718efbeb6208bc64051b67 to your computer and use it in GitHub Desktop.
Save bulatie/952ffcff94718efbeb6208bc64051b67 to your computer and use it in GitHub Desktop.
circleClickHandler
circleClickHandler() {
let level = this.curExpendLevel
if (level < 2 && (level > this.lastExpendLevel || level === 0)) {
level++
} else {
level--
}
this.lastExpendLevel = this.curExpendLevel
this.curExpendLevel = level
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment