@thatopen/components 3.4.3 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -12888,7 +12888,13 @@ const _FastModelPicker = class _FastModelPicker {
12888
12888
  const half = SCISSOR_PX >> 1;
12889
12889
  const sx = Math.max(0, Math.min(tw - SCISSOR_PX, cx - half));
12890
12890
  const sy = Math.max(0, Math.min(th - SCISSOR_PX, cy - half));
12891
- renderer.setScissor(sx, sy, SCISSOR_PX, SCISSOR_PX);
12891
+ const dpr = renderer.getPixelRatio();
12892
+ renderer.setScissor(
12893
+ sx / dpr,
12894
+ sy / dpr,
12895
+ SCISSOR_PX / dpr,
12896
+ SCISSOR_PX / dpr
12897
+ );
12892
12898
  renderer.setScissorTest(true);
12893
12899
  const objectsByModel = /* @__PURE__ */ new Map();
12894
12900
  for (const [modelId, model] of fragments.list) {