the selection helper is not selecting in our bottom div, but only in the chatgpt part of the window. see #104

This commit is contained in:
mic 2024-08-15 00:28:47 +02:00
parent 3b424d2bdf
commit 4c7d9aced9

View file

@ -417,6 +417,13 @@ function selectContentOnMouseMove(event) {
}
function selectContentOnMouseUp(event) {
var excludedArea = document.querySelector('.mzta-header-fixed');
if (excludedArea && excludedArea.contains(event.target)) {
// If the click was inside the excluded area, do nothing
return;
}
if ((!isDragging)&&(!isSomethingSelected())) {
// If no dragging has occurred, execute the selection code
selectContentOnClick(event);