@internal turns auto hide on/off
(auto: boolean)
| 118 | |
| 119 | /** @internal turns auto hide on/off */ |
| 120 | protected _setupAutoHide(auto: boolean): DDResizable { |
| 121 | if (auto) { |
| 122 | this.el.classList.add('ui-resizable-autohide'); |
| 123 | // use mouseover and not mouseenter to get better performance and track for nested cases |
| 124 | this.el.addEventListener('mouseover', this._mouseOver); |
| 125 | this.el.addEventListener('mouseout', this._mouseOut); |
| 126 | } else { |
| 127 | this.el.classList.remove('ui-resizable-autohide'); |
| 128 | this.el.removeEventListener('mouseover', this._mouseOver); |
| 129 | this.el.removeEventListener('mouseout', this._mouseOut); |
| 130 | if (DDManager.overResizeElement === this) { |
| 131 | delete DDManager.overResizeElement; |
| 132 | } |
| 133 | } |
| 134 | return this; |
| 135 | } |
| 136 | |
| 137 | /** @internal */ |
| 138 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
no test coverage detected