|
@@ -315,15 +315,13 @@ export class Wnd {
|
|
const width = rect.width;
|
|
const width = rect.width;
|
|
const x = event.clientX - rect.left;
|
|
const x = event.clientX - rect.left;
|
|
const y = event.clientY - rect.top;
|
|
const y = event.clientY - rect.top;
|
|
- if ((x <= width / 3 && (y <= height / 8 || y >= height * 7 / 8)) ||
|
|
|
|
- (x <= width / 8 && (y > height / 8 || y < height * 7 / 8))) {
|
|
|
|
|
|
+ if (x <= width / 8 || (x <= width / 3 && x > width / 8 && y >= height / 8 && y <= height * 7 / 8)) {
|
|
dragElement.setAttribute("style", "height:100%;width:50%;right:50%;bottom:0;left:0;top:0");
|
|
dragElement.setAttribute("style", "height:100%;width:50%;right:50%;bottom:0;left:0;top:0");
|
|
- } else if ((x > width * 2 / 3 && (y <= height / 8 || y >= height * 7 / 8)) ||
|
|
|
|
- (x >= width * 7 / 8 && (y > height / 8 || y < height * 7 / 8))) {
|
|
|
|
|
|
+ } else if (x >= width * 7 / 8 || (x >= width * 2 / 3 && x < width * 7 / 8 && y >= height / 8 && y <= height * 7 / 8)) {
|
|
dragElement.setAttribute("style", "height:100%;width:50%;right:0;bottom:0;left:50%;top:0");
|
|
dragElement.setAttribute("style", "height:100%;width:50%;right:0;bottom:0;left:50%;top:0");
|
|
- } else if (x > width / 3 && x < width * 2 / 3 && y <= height / 8) {
|
|
|
|
|
|
+ } else if (y <= height / 8) {
|
|
dragElement.setAttribute("style", "height:50%;width:100%;right:0;bottom:50%;left:0;top:0");
|
|
dragElement.setAttribute("style", "height:50%;width:100%;right:0;bottom:50%;left:0;top:0");
|
|
- } else if (x > width / 3 && x < width * 2 / 3 && y >= height * 7 / 8) {
|
|
|
|
|
|
+ } else if (y >= height * 7 / 8) {
|
|
dragElement.setAttribute("style", "height:50%;width:100%;right:0;bottom:0;left:0;top:50%");
|
|
dragElement.setAttribute("style", "height:50%;width:100%;right:0;bottom:0;left:0;top:50%");
|
|
} else {
|
|
} else {
|
|
dragElement.setAttribute("style", "height:100%;width:100%;right:0;bottom:0;top:0;left:0");
|
|
dragElement.setAttribute("style", "height:100%;width:100%;right:0;bottom:0;top:0;left:0");
|