makes ctrl + middle be move canvas
This is for consistency with zoom and to avoid conflict with middle mouse click for extra image generation Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
parent
c6a6342a8c
commit
3207e86566
2 changed files with 6 additions and 2 deletions
|
@ -188,7 +188,7 @@ mouse.listen.window.onwheel.on((evn) => {
|
|||
});
|
||||
|
||||
mouse.listen.window.btn.middle.onpaintstart.on((evn) => {
|
||||
worldInit = {x: viewport.cx, y: viewport.cy};
|
||||
if (evn.evn.ctrlKey) worldInit = {x: viewport.cx, y: viewport.cy};
|
||||
});
|
||||
|
||||
mouse.listen.window.btn.middle.onpaint.on((evn) => {
|
||||
|
|
|
@ -562,7 +562,11 @@ const _generate = async (endpoint, request, bb, options = {}) => {
|
|||
);
|
||||
const onmorehandler = mouse.listen.world.btn.middle.onclick.on(
|
||||
(evn, state) => {
|
||||
if (!state.dream_processed && bb.contains(evn.x, evn.y)) {
|
||||
if (
|
||||
!state.dream_processed &&
|
||||
bb.contains(evn.x, evn.y) &&
|
||||
!evn.evn.ctrlKey
|
||||
) {
|
||||
makeMore();
|
||||
state.dream_processed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue