aboutsummaryrefslogtreecommitdiff
path: root/app/src/web/typings
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-02 16:29:28 -0700
committerAllan Wang <me@allanwang.ca>2019-07-02 16:29:28 -0700
commit4c551386b100ea4b694c1e8f44596ba369e6b068 (patch)
treef18e167cf804e70820703e6951060004ef12e774 /app/src/web/typings
parent99e70f4489ce210e514c9194cdac288d2de651c4 (diff)
downloadfrost-4c551386b100ea4b694c1e8f44596ba369e6b068.tar.gz
frost-4c551386b100ea4b694c1e8f44596ba369e6b068.tar.bz2
frost-4c551386b100ea4b694c1e8f44596ba369e6b068.zip
Prevent horizontal swipes if html element can scroll horizontally
Diffstat (limited to 'app/src/web/typings')
-rw-r--r--app/src/web/typings/frost.d.ts26
1 files changed, 14 insertions, 12 deletions
diff --git a/app/src/web/typings/frost.d.ts b/app/src/web/typings/frost.d.ts
index 8f60c9dd..ae7c97ab 100644
--- a/app/src/web/typings/frost.d.ts
+++ b/app/src/web/typings/frost.d.ts
@@ -1,27 +1,29 @@
declare interface FrostJSI {
- loadUrl(url: string | null): boolean
+ loadUrl(url: string | null): boolean
- loadVideo(url: string | null, isGif: boolean): boolean
+ loadVideo(url: string | null, isGif: boolean): boolean
- reloadBaseUrl(animate: boolean)
+ reloadBaseUrl(animate: boolean)
- contextMenu(url: string | null, text: string | null)
+ contextMenu(url: string | null, text: string | null)
- longClick(start: boolean)
+ longClick(start: boolean)
- disableSwipeRefresh(disable: boolean)
+ disableSwipeRefresh(disable: boolean)
- loadLogin()
+ loadLogin()
- loadImage(imageUrl: string, text: string | null)
+ loadImage(imageUrl: string, text: string | null)
- emit(flag: number)
+ emit(flag: number)
- isReady()
+ isReady()
- handleHtml(html: string | null)
+ handleHtml(html: string | null)
- handleHeader(html: string | null)
+ handleHeader(html: string | null)
+
+ allowHorizontalScrolling(enable: boolean)
}
declare var Frost: FrostJSI;