Skip to content

Commit 62649d2

Browse files
authored
Merge pull request #462 from topcoderinc/issue-385
fixes issue 385
2 parents cd7b8e4 + 312d8ae commit 62649d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export class AppComponent implements OnInit {
5757

5858
public dragObject = {
5959
minWidth: 250,
60+
maxWidth: 600,
6061
currentWidth: 300,
6162
startClientX: 0,
6263
pressed: false,
@@ -176,7 +177,7 @@ export class AppComponent implements OnInit {
176177
return;
177178
}
178179
evt.preventDefault();
179-
if (evt.clientX + 10 <= this.dragObject.minWidth) {
180+
if ((evt.clientX + 10 <= this.dragObject.minWidth) || (evt.clientX >= this.dragObject.maxWidth)) {
180181
return;
181182
}
182183
this.dragObject.currentWidth = evt.clientX + 10;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy