(e)
| 157 | } |
| 158 | |
| 159 | getAlphaAtClick(e) { |
| 160 | let x = e.clientX - this.canvasAlpha.documentOffsetLeft; |
| 161 | x = (x < 1 && 1) || x; |
| 162 | x = (x > this.w - 1 && this.w - 1) || x; |
| 163 | this.alphaPosition = x; |
| 164 | this.alphaRegulator.style.left = `${x}px`; |
| 165 | this.regetAlpha(); |
| 166 | } |
| 167 | |
| 168 | handleKeyDown(event) { |
| 169 | if (this.opened && event.keyCode === KEYS.enter) { |
no test coverage detected