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:
parent
0963efe979
commit
4caa393a1d
7 changed files with 4802 additions and 4577 deletions
2526
src/contents.js
2526
src/contents.js
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
1903
src/rendition.js
1903
src/rendition.js
File diff suppressed because it is too large
Load diff
4
types/managers/view.d.ts
vendored
4
types/managers/view.d.ts
vendored
|
@ -11,7 +11,9 @@ export interface ViewSettings {
|
|||
width?: number,
|
||||
height?: number,
|
||||
forceEvenPages?: boolean,
|
||||
allowScriptedContent?: boolean
|
||||
allowScriptedContent?: boolean,
|
||||
selectionStopDelay?:number
|
||||
|
||||
}
|
||||
|
||||
export default class View {
|
||||
|
|
1
types/rendition.d.ts
vendored
1
types/rendition.d.ts
vendored
|
@ -26,6 +26,7 @@ export interface RenditionOptions {
|
|||
snap?: boolean | object,
|
||||
defaultDirection?: string,
|
||||
allowScriptedContent?: boolean
|
||||
selectionStopDelay?:number
|
||||
}
|
||||
|
||||
export interface DisplayedLocation {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue