diff --git a/cypress/e2e/filtering.cy.js b/cypress/e2e/filtering.cy.js
new file mode 100644
index 0000000..08b8777
--- /dev/null
+++ b/cypress/e2e/filtering.cy.js
@@ -0,0 +1,22 @@
+describe('Accepted filtering', () => {
+ it('test accepted filter button', function () {
+ cy.visit('http://localhost:5173/#')
+ cy.get('#doAcceptedFilter').click()
+ })
+})
+
+describe('Elevation Control', () => {
+ it('test elevation control', function () {
+ cy.visit('http://localhost:5173/#')
+ cy.get('#btnDoElevationControl').click()
+
+ cy.get(
+ '#elevation_gradient_scheme_selection span:nth-child(8) rect'
+ ).click()
+ cy.get(
+ '#elevation_gradient_scheme_selection span:nth-child(3) rect'
+ ).click()
+
+ cy.get('#sldHeightRange').click()
+ })
+})
diff --git a/src/ElevationControl/elevationControl.js b/src/ElevationControl/elevationControl.js
index d05f24b..a6cd4e6 100644
--- a/src/ElevationControl/elevationControl.js
+++ b/src/ElevationControl/elevationControl.js
@@ -57,25 +57,6 @@ function ensureActivationButton(hooks) {
list.insertBefore(btn, list.firstChild)
}
-// /**
-// * Disable any further clicks of the pointcloud icon in the sidebar
-// */
-// function disableFirstPointCloudNode() {
-// // find the
that holds the first cloud icon
-// const icon = document.querySelector(
-// '#scene_objects i.jstree-themeicon-custom'
-// )
-// const li = icon ? icon.closest('li') : null
-// if (!li) return
-// //visually/DOM disable anchor clicks
-// const a = li.querySelector('a')
-// if (a) {
-// a.style.pointerEvents = 'none'
-// a.style.opacity = 0.5
-// a.classList.remove('jstree-clicked')
-// }
-// }
-
// (re)connect the elevation labels to the slider after the container is moved
function rebindElevationLabel() {
const slider = window.jQuery ? window.jQuery('#sldHeightRange') : null
@@ -135,6 +116,4 @@ export function initElevationControls(viewer, hooks = {}) {
}
})
observer.observe(menu, { childList: true, subtree: true })
-
- //disableFirstPointCloudNode()
}
diff --git a/src/potreeViewer.js b/src/potreeViewer.js
index 659cf63..51eab3a 100644
--- a/src/potreeViewer.js
+++ b/src/potreeViewer.js
@@ -284,9 +284,6 @@ function suppressSidebarAutoScroll(action, holdMs = 350) {
// full restore
Element.prototype.scrollIntoView = origScrollIntoView
HTMLElement.prototype.focus = origFocus
- window.removeEventListener('wheel', preventWindowScroll)
- window.removeEventListener('touchmove', preventWindowScroll)
- window.removeEventListener('keydown', preventWindowScroll)
states.forEach(({ el, overflow }) => {
const h = handlers.get(el)
if (h) el.removeEventListener('scroll', h)