From 35f6d841d115915a684b1ecdc38c5df4556b367b Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Wed, 21 Jun 2017 21:32:04 -0400 Subject: [PATCH] Don't scroll in the document window when the dropdown_menu is being scrolled --- pd/nw/pd_canvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index 046617fff..6eeabd766 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -524,9 +524,10 @@ var canvas_events = (function() { li = li.nextElementSibling || li.parentElement.firstElementChild; dropdown_highlight_elem(li); + break; default: } - + evt.preventDefault(); }, dropdown_menu_keypress: function(evt) { var li_nodes = document.querySelectorAll("#dropdown_list li"), -- GitLab