1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-29 07:50:08 +02:00
This commit is contained in:
Antonio Laguna
2017-04-27 16:44:47 +02:00
parent 7f59470ddd
commit c894759d93
2 changed files with 5 additions and 3 deletions

View File

@@ -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

View File

@@ -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;