Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable vertical drag to dismiss #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions carousel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,9 @@ <h2>Get market information and alerts anytime, anywhere.</h2>
</div>
</div>
<script type="text/javascript">
if (iamInfo) {
// Disable vertical-drag-to-dismiss since it might mistakenly occur when horizontally
// dragging to visit the next page
iamInfo.shouldVerticalDragDismissMessage = false;
}
// Disable vertical-drag-to-dismiss since it might mistakenly occur when horizontally
// dragging to visit the next page
OneSignalIamApi.disableVerticalDragToDismiss();

var config = {
autoScrollDuration: "0.5s",
Expand Down
7 changes: 4 additions & 3 deletions check_list_survey/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,10 @@ <h2>Get better recommendations and other customized experience</h2>
</form>
</div>
<script>
if (iamInfo) {
iamInfo.shouldVerticalDragDismissMessage = false;
}
// Disable vertical-drag-to-dismiss since it might mistakenly occur when horizontally
// dragging to visit the next page
OneSignalIamApi.disableVerticalDragToDismiss();

// Your code here
document
.querySelector(".close-button")
Expand Down