function enableSwipe(enable) {
	const moveEvent = pointerEvent
		? "pointermove"
		: touchEvent
			? "touchmove"
			: "mousemove";
	if (enable !== false) {
		if (swipeEnabled === false) {
			globalThis.document.removeEventListener(moveEvent, disableSwipeFn);
			swipeEnabled = true;
		}
	} else if (swipeEnabled === true) {
		globalThis.document.addEventListener(moveEvent, disableSwipeFn, {
			passive: false,
		});
		swipeEnabled = false;
	}
}
enable/disable swipe on WebView.
@memberof device
@param {boolean} [enable=true] - enable or disable swipe.