From 17e5f67519a0ca11ed22be064edff43bfac6452e Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Sat, 3 Oct 2015 21:33:52 +0900 Subject: [PATCH] Make selection scroll optional It's not essential but rather causes several problems. --- README.md | 4 ++++ examples/text-content.html | 4 +++- src/js/plugin/default-setting.js | 19 ++++++++++--------- src/js/plugin/initialize.js | 5 ++++- 4 files changed, 21 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1187b6c..28f4b3b 100644 --- a/README.md +++ b/README.md @@ -312,6 +312,10 @@ The number of pixels the content height can surpass the container height without When set to false, when clicking on a rail, the click event will be allowed to propagate. **Default: true** +### useSelectionScroll +When set to true, you can scroll the container by selecting text and move the cursor. +**Default: false** + ## Events perfect-scrollbar dispatches custom events. diff --git a/examples/text-content.html b/examples/text-content.html index 3fe192c..9a994f0 100644 --- a/examples/text-content.html +++ b/examples/text-content.html @@ -32,7 +32,9 @@