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