Skip to content

Commit

Permalink
fix: 拾取 invalid x offset
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Mar 26, 2020
1 parent 0f67b98 commit 8282007
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

## [2.1.7](https://github.com/antvis/L7/compare/v2.1.6...v2.1.7) (2020-03-26)


### Bug Fixes

* 修复颜色纹理取色问题 & 图片标注默认颜色问题 ([9d6b198](https://github.com/antvis/L7/commit/9d6b198f76b44c55ce0a094c6649c9e4130a398b))




- 修复颜色纹理取色问题 & 图片标注默认颜色问题 ([9d6b198](https://github.com/antvis/L7/commit/9d6b198f76b44c55ce0a094c6649c9e4130a398b))

## [2.1.5](https://github.com/antvis/L7/compare/v2.1.4...v2.1.5) (2020-03-20)

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/services/interaction/PickingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ export default class PickingService implements IPickingService {
const xInDevicePixel = x * window.devicePixelRatio;
const yInDevicePixel = y * window.devicePixelRatio;
if (
xInDevicePixel > width ||
xInDevicePixel > width - 1 * window.devicePixelRatio ||
xInDevicePixel < 0 ||
yInDevicePixel > height ||
yInDevicePixel > height - 1 * window.devicePixelRatio ||
yInDevicePixel < 0
) {
return;
Expand Down
2 changes: 1 addition & 1 deletion stories/Layers/components/heatmap3d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class HeatMapLayerDemo extends React.Component {
'#CF1D49',
],
positions: [0, 0.2, 0.4, 0.6, 0.8, 1.0],
}
},
});
scene.addLayer(layer);
});
Expand Down

0 comments on commit 8282007

Please sign in to comment.