We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf424c commit dd99d16Copy full SHA for dd99d16
inst/app/www/document_code_js.js
@@ -70,9 +70,10 @@ function updateSelection() {
70
71
// Function to send calculated positions to Shiny
72
$( document ).ready(function() {
73
- document.addEventListener('mouseup', updateSelection);
74
- document.addEventListener('keyup', updateSelection);
75
- document.addEventListener('touchend', updateSelection);
+ var el = document.getElementById("document_code_ui_1-focal_text")
+ el.addEventListener('mouseup', updateSelection);
+ el.addEventListener('keyup', updateSelection);
76
+ el.addEventListener('touchend', updateSelection);
77
})
78
79
// Obtain information from iframe and send to Shiny
0 commit comments