corrade-nucleus-nucleons – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
20 office 1 ## 1.2.7
2  
3 The bower and npm package names have been changed to `interactjs`. See [issue #399](https://github.com/taye/interact.js/issue/399)
4  
5 ## 1.2.6
6  
7 ### resize.preserveAspectRatio
8  
9 ```javascript
10 interact(target).resizable({ preserveAspectRatio: true });
11 ```
12  
13 See [PR #260](https://github.com/taye/interact.js/pull/260).
14  
15 ### Deprecated
16 - `interact.margin(number)` - Use `interact(target).resizable({ margin: number });` instead
17  
18 ### Fixed
19  
20 - incorrect coordinates of the first movement of every action ([5e5a040](https://github.com/taye/interact.js/commit/5e5a040))
21 - warning about deprecated "webkitForce" event property ([0943290](https://github.com/taye/interact.js/commit/0943290))
22 - bugs with multiple concurrent interactions ([ed53aee](http://github.com/taye/interact.js/commit/ed53aee))
23 - iPad 1, iOS 5.1.1 error "undefined is not a function" when autoScroll is set
24 to true ([PR #194](https://github.com/taye/interact.js/pull/194))
25  
26 Full list of [changes on Github](https://github.com/taye/interact.js/compare/v1.2.5...master)
27  
28 ## 1.2.5
29  
30 ### Changed parameters to actionChecker and drop.checker
31  
32 - Added `event` as the first argument to actionCheckers. See commit [88dc583](https://github.com/taye/interact.js/commit/88dc583)
33 - Added `dragEvent` as the first parameter to drop.checker functions. See
34 commits [16d74d4](https://github.com/taye/interact.js/commit/16d74d4) and [d0c4b69](https://github.com/taye/interact.js/commit/d0c4b69)
35  
36 ### Deprecated methods
37  
38 interactable.accept - instead, use:
39  
40 ```javascript
41 interact(target).dropzone({ accept: stringOrElement })
42 ```
43  
44 interactable.dropChecker - instead, use:
45  
46 ```javascript
47 interact(target).dropzone({ checker: function () {} })
48 ```
49  
50 ### Added resize.margin
51  
52 See https://github.com/taye/interact.js/issues/166#issuecomment-91234390
53  
54 ### Fixes
55  
56 - touch coords on Presto Opera Mobile - see commits [886e54c](https://github.com/taye/interact.js/commit/886e54c) and [5a3a850](https://github.com/taye/interact.js/commit/5a3a850)
57 - bug with multiple pointers - see commit [64882d3](https://github.com/taye/interact.js/commit/64882d3)
58 - accessing certain recently deprecated event properties in Blink - see
59 commits [e91fbc6](https://github.com/taye/interact.js/commit/e91fbc6) and [195cfe9](https://github.com/taye/interact.js/commit/195cfe9)
60 - dropzones with `accept: 'pointer'` in scrolled pages on iOS6 and lower - see
61 commit [0b94aac](https://github.com/taye/interact.js/commit/0b94aac)
62 - setting styleCursor through Interactable options object - see [PR
63 #270](https://github.com/taye/interact.js/pull/270)
64 - one missed interaction element on stop triggered - see [PR
65 #258](https://github.com/taye/interact.js/pull/258)
66 - pointer dt on touchscreen devices - see [PR
67 #215](https://github.com/taye/interact.js/pull/215)
68 - autoScroll with containers with fixed position - see commit [3635840](https://github.com/taye/interact.js/commit/3635840)
69 - autoScroll for mobile - see #180
70 - preventDefault - see commits [1984c80](https://github.com/taye/interact.js/commit/1984c80) and [6913959](https://github.com/taye/interact.js/commit/6913959)
71 - occasional error - see [issue
72 #183](https://github.com/taye/interact.js/issue/183)
73 - Interactable#unset - see [PR
74 #178](https://github.com/taye/interact.js/pull/178)
75 - coords of start event after manual start - see commit [fec73b2](https://github.com/taye/interact.js/commit/fec73b2)
76 - bug with touch and selector interactables - see commit [d8df3de](https://github.com/taye/interact.js/commit/d8df3de)
77 - touch doubletap bug - see [273f461](https://github.com/taye/interact.js/commit/273f461)
78 - event x0/y0 with origin - see [PR
79 #167](https://github.com/taye/interact.js/pull/167)
80  
81 ## 1.2.4
82  
83 ### Resizing from all edges
84  
85 With the new [resize edges API](https://github.com/taye/interact.js/pull/145),
86 you can resize from the top and left edges of an element in addition to the
87 bottom and right. It also allows you to specify CSS selectors, regions or
88 elements as the resize handles.
89  
90 ### Better `dropChecker` arguments
91  
92 The arguments to `dropChecker` functions have been expanded to include the
93 value of the default drop check and some other useful objects. See [PR
94 161](https://github.com/taye/interact.js/pull/161)
95  
96 ### Improved `preventDefault('auto')`
97  
98 If manuanStart is `true`, default prevention will happen only while
99 interacting. Related to [Issue
100 138](https://github.com/taye/interact.js/issues/138).
101  
102 ### Fixed inaccurate snapping
103  
104 This removes a small inaccuracy when snapping with one or more
105 `relativeOffsets`.
106  
107 ### Fixed bugs with multiple pointers
108  
109 ## 1.2.3
110  
111 ### ShadowDOM
112  
113 Basic support for ShadowDOM was implemented in [PR
114 143](https://github.com/taye/interact.js/pull/143)
115  
116 ### Fixed some issues with events
117  
118 Fixed Interactable#on({ type: listener }). b8a5e89
119  
120 Added a `double` property to tap events. `tap.double === true` if the tap will
121 be followed by a `doubletap` event. See [issue
122 155](https://github.com/taye/interact.js/issues/155#issuecomment-71202352).
123  
124 Fixed [issue 150](https://github.com/taye/interact.js/issues/150).
125  
126 ## 1.2.2
127  
128 ### Fixed DOM event removal
129  
130 See [issue 149](https://github.com/taye/interact.js/issues/149).
131  
132 ## 1.2.1
133  
134 ### Fixed Gestures
135  
136 Gestures were completely [broken in
137 v1.2.0](https://github.com/taye/interact.js/issues/146). They're fixed now.
138  
139 ### Restriction
140  
141 Fixed restriction to an element when the element doesn't have a rect (`display:
142 none`, not in DOM, etc.). [Issue
143 144](https://github.com/taye/interact.js/issues/144).
144  
145 ## 1.2.0
146  
147 ### Multiple interactions
148  
149 Multiple interactions have been enabled by default. For example:
150  
151 ```javascript
152 interact('.drag-element').draggable({
153 enabled: true,
154 // max : Infinity, // default
155 // maxPerElement: 1, // default
156 });
157 ```
158  
159 will allow multiple `.drag-element` to be dragged simultaneously without having
160 to explicitly set <code>max:&nbsp;integerGreaterThan1</code>. The default
161 `maxPerElement` value is still 1 so only one drag would be able to happen on
162 each `.drag-element` unless the `maxPerElement` is changed.
163  
164 If you don't want multiple interactions, call `interact.maxInteractions(1)`.
165  
166 ### Snapping
167  
168 #### Unified snap modes
169 Snap modes have been
170 [unified](https://github.com/taye/interact.js/pull/127). A `targets` array
171 now holds all the snap objects and functions for snapping.
172 `interact.createSnapGrid(gridObject)` returns a function that snaps to the
173 dimensions of the given grid.
174  
175 #### `relativePoints` and `origin`
176  
177 ```javascript
178 interact(target).draggable({
179 snap: {
180 targets: [ {x: 300, y: 300} ],
181 relativePoints: [
182 { x: 0, y: 0 }, // snap relative to the top left of the element
183 { x: 1, y: 1 }, // and also to the bottom right
184 ],
185  
186 // offset the snap target coordinates
187 // can be an object with x/y or 'startCoords'
188 offset: { x: 50, y: 50 }
189 }
190 });
191 ```
192  
193 #### snap function interaction arg
194  
195 The current `Interaction` is now passed as the third parameter to snap functions.
196  
197 ```javascript
198 interact(target).draggable({
199 snap: {
200 targets: [ function (x, y, interaction) {
201 if (!interaction.dropTarget) {
202 return { x: 0, y: 0 };
203 }
204 } ]
205 });
206 ```
207  
208 #### snap.relativePoints and offset
209  
210 The `snap.relativePoints` array succeeds the snap.elementOriign object. But
211 backwards compatibility with `elementOrigin` and the old snapping interface is
212 maintained.
213  
214 `snap.offset` lets you offset all snap target coords.
215  
216 See [this PR](https://github.com/taye/interact.js/pull/133) for more info.
217  
218 #### slight change to snap range calculation
219  
220 Snapping now occurs if the distance to the snap target is [less than or
221 equal](https://github.com/taye/interact.js/commit/430c28c) to the target's
222 range.
223  
224 ### Inertia
225  
226 `inertia.zeroResumeDelta` is now `true` by default.
227  
228 ### Per-action settings
229  
230 Snap, restrict, inertia, autoScroll can be different for drag, restrict and
231 gesture. See [PR 115](https://github.com/taye/interact.js/pull/115).
232  
233 Methods for these settings on the `interact` object (`interact.snap()`,
234 `interact.autoScroll()`, etc.) have been removed.
235  
236 ### Space-separated string and array event list and eventType:listener object
237  
238 ```javascript
239 function logEventType (event) {
240 console.log(event.type, event.target);
241 }
242  
243 interact(target).on('down tap dragstart gestureend', logEventType);
244  
245 interact(target).on(['move', 'resizestart'], logEventType);
246  
247 interact(target).on({
248 dragmove: logEvent,
249 keydown : logEvent
250 });
251 ```
252  
253 ### Interactable actionChecker
254  
255 The expected return value from an action checker has changed from a string to
256 an object. The object should have a `name` and can also have an `axis`
257 property. For example, to resize horizontally:
258  
259 ```javascript
260 interact(target).resizeable(true)
261 .actionChecker(function (pointer, defaultAction, interactable, element) {
262 return {
263 name: 'resize',
264 axis: 'x',
265 };
266 });
267 ```
268  
269 ### Plain drop event objects
270  
271 All drop-related events are [now plain
272 objects](https://github.com/taye/interact.js/issues/122). The related drag
273 events are referenced in their `dragEvent` property.
274  
275 ### Interactable.preventDefault('always' || 'never' || 'auto')
276  
277 The method takes one of the above string values. It will still accept
278 `true`/`false` parameters which are changed to `'always'`/`'never'`.
279  
280 ## 1.1.3
281  
282 ### Better Events
283  
284 Adding a function as a listener for an InteractEvent or pointerEvent type
285 multiple times will cause that function to be fired multiple times for the
286 event. Previously, adding the event type + function combination again had no
287 effect.
288  
289 Added new event types [down, move, up, cancel,
290 hold](https://github.com/taye/interact.js/pull/101).
291  
292 Tap and doubletap with multiple pointers was improved.
293  
294 Added a workaround for IE8's unusual [dblclick event
295 sequence](http://www.quirksmode.org/dom/events/click.html) so that doubletap
296 events are fired.
297  
298 Fixed a [tapping issue](https://github.com/taye/interact.js/issues/104) on
299 Windows Phone/RT.
300  
301 Fixed a bug that caused the origins of all elements with tap listeners to be
302 subtracted successively as a tap event propagated.
303  
304 [Fixed delegated events](https://github.com/taye/interact.js/commit/e972154)
305 when different contexts have been used.
306  
307 ### iFrames
308  
309 [Added basic support](https://github.com/taye/interact.js/pull/98) for sharing
310 one instance of interact.js between multiplie windows/frames. There are still
311 some issues.