diff options
| author | Rokas Puzonas <[email protected]> | 2023-08-20 10:22:30 +0300 |
|---|---|---|
| committer | Rokas Puzonas <[email protected]> | 2023-08-20 10:22:30 +0300 |
| commit | 00e5fe5c1877800a19ae4a22fc7c3b4b33ef32d7 (patch) | |
| tree | 0a7843c430eb2e62d3ac4b47c666face6c806629 /common/examples.js | |
| parent | 7837aa409524a37e4f81ab243425675d331e0320 (diff) | |
| download | raylib.com-00e5fe5c1877800a19ae4a22fc7c3b4b33ef32d7.tar.gz raylib.com-00e5fe5c1877800a19ae4a22fc7c3b4b33ef32d7.zip | |
add debouncing of input field changes
Diffstat (limited to 'common/examples.js')
| -rw-r--r-- | common/examples.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/examples.js b/common/examples.js index d4afb46..c0ecad2 100644 --- a/common/examples.js +++ b/common/examples.js @@ -213,9 +213,9 @@ $(document).ready(function() { } // From now listen for input update events - filterFunctionInput.on('input', function(event) { + filterFunctionInput.on("input", $.debounce(200, function(event) { applyByFunctionFilter(event.target.value) - }); + })); }) // Instantiate MixItUp: |
