mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-29 07:50:08 +02:00
Linting
This commit is contained in:
@@ -36,7 +36,8 @@ export default class WebSlides {
|
||||
* @param {boolean} loop Whether to go to first slide from last one or not.
|
||||
* @param {number} minWheelDelta Controls the amount of needed scroll to
|
||||
* trigger navigation.
|
||||
* @param {boolean} navigateOnScroll Whether scroll can trigger navigation or not.
|
||||
* @param {boolean} navigateOnScroll Whether scroll can trigger navigation or
|
||||
* not.
|
||||
* @param {number} scrollWait Controls the amount of time to wait till
|
||||
* navigation can occur again with scroll.
|
||||
* @param {number} slideOffset Controls the amount of needed touch delta to
|
||||
|
@@ -161,8 +161,9 @@ export default class DOM {
|
||||
let result = false;
|
||||
|
||||
if (document.activeElement) {
|
||||
const isContentEditable = document.activeElement
|
||||
.contentEditable !== 'inherit' && document.activeElement.contentEditable !== undefined;
|
||||
const isContentEditable =
|
||||
document.activeElement.contentEditable !== 'inherit' &&
|
||||
document.activeElement.contentEditable !== undefined;
|
||||
const isInput = ['INPUT', 'SELECT', 'OPTION', 'TEXTAREA']
|
||||
.indexOf(document.activeElement.tagName) > -1;
|
||||
result = isInput || isContentEditable;
|
||||
|
Reference in New Issue
Block a user