MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / fancyDblClickHandler

Function fancyDblClickHandler

InteractiveHtmlBom/web/util.js:38–53  ·  view source on GitHub ↗
(el, onsingle, ondouble)

Source from the content-addressed store, hash-verified

36}
37
38function fancyDblClickHandler(el, onsingle, ondouble) {
39 return function () {
40 if (el.getAttribute("data-dblclick") == null) {
41 el.setAttribute("data-dblclick", 1);
42 setTimeout(function () {
43 if (el.getAttribute("data-dblclick") == 1) {
44 onsingle();
45 }
46 el.removeAttribute("data-dblclick");
47 }, 200);
48 } else {
49 el.removeAttribute("data-dblclick");
50 ondouble();
51 }
52 }
53}
54
55function smoothScrollToRow(rowid) {
56 document.getElementById(rowid).scrollIntoView({

Callers 1

createColumnHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected