1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

Added new property 'selectionStopDelay' to allow configure the selection event when it stop.

New property 'selectionStopDelay' added to the Epub settings.
Changed the function 'onSelectionChange' to use the settings to configure the Timeout with the new attribute selectionStopDelay.
This commit is contained in:
Luis Bonilla 2022-02-23 14:02:14 -06:00
parent 0963efe979
commit 4caa393a1d
7 changed files with 4802 additions and 4577 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -11,7 +11,9 @@ export interface ViewSettings {
width?: number,
height?: number,
forceEvenPages?: boolean,
allowScriptedContent?: boolean
allowScriptedContent?: boolean,
selectionStopDelay?:number
}
export default class View {

View file

@ -26,6 +26,7 @@ export interface RenditionOptions {
snap?: boolean | object,
defaultDirection?: string,
allowScriptedContent?: boolean
selectionStopDelay?:number
}
export interface DisplayedLocation {