Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
make designer maximize
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Dec 20, 2013
1 parent 4ea96ca commit eba0271
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion x-designable.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-->
<link rel="import" href="../polymer/polymer.html">

<polymer-element name="x-designable" designer attributes="selected" on-keydown="{{keydown}}" on-pointerup="{{pointerUp}}" on-trackstart="{{trackStart}}" on-track="{{track}}" on-trackend="{{trackEnd}}">
<polymer-element name="x-designable" designer attributes="selected" on-keydown="{{keydown}}" on-pointerdown="{{pointerDown}}" on-pointerup="{{pointerUp}}" on-trackstart="{{trackStart}}" on-track="{{track}}" on-trackend="{{trackEnd}}">
<template>
<style>
:host {
Expand Down Expand Up @@ -175,6 +175,9 @@
break;
}
},
pointerDown: function(e) {
//this.dragDisabled = e.altKey;
},
pointerUp: function(e) {
if (this.dragInfo && !this.dragInfo.dropped) {
this.dragInfo.dropped = this.drop(this.dragInfo.element, e);
Expand All @@ -190,6 +193,9 @@
event.stopPropagation();
//console.dir(event);
// acquire target
if (this.dragDisabled) {
return;
}
var elt = this.findDraggableElement(event.target);
if (elt) {
var dragInfo = this.createDragObject(elt);
Expand Down

0 comments on commit eba0271

Please sign in to comment.