Skip to content

Commit

Permalink
fix: center color picker circle under mouse pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Jun 7, 2018
1 parent f4a328b commit b4b94cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/common/saturation.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import { HSLA, HSVA, HSVAsource } from './helpers/color.interfaces';
box-shadow: 0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4);
border-radius: 50%;
cursor: hand;
transform: translate(-2px, -2px);
transform: translate(-2px, -4px);
}
`,
],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/chrome/chrome.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class ChromeComponent extends ColorWrap {
height: '12px',
borderRadius: '6px',
boxShadow: 'rgb(255, 255, 255) 0px 0px 0px 1px inset',
transform: 'translate(-6px, -6px)',
transform: 'translate(-6px, -8px)',
};
pointer: {[key: string]: string} = {
width: '12px',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/photoshop/photoshop.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class PhotoshopComponent extends ColorWrap {
height: '12px',
borderRadius: '6px',
boxShadow: 'rgb(255, 255, 255) 0px 0px 0px 1px inset',
transform: 'translate(-6px, -6px)',
transform: 'translate(-6px, -10px)',
};
constructor() {
super();
Expand Down

0 comments on commit b4b94cf

Please sign in to comment.