<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django-debug-toolbar/debug_toolbar/static, branch restrict-toolbar-handle-to-window</title>
<subtitle>A configurable set of panels that display various debug information about the current request/response.</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/'/>
<entry>
<title>toolbar.js: Ensure toolbar handle cannot be dragged outside window</title>
<updated>2014-09-14T17:03:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-08-17T01:18:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=b2957c1782e7053e389d9bb2a3f0f2558a914bfe'/>
<id>b2957c1782e7053e389d9bb2a3f0f2558a914bfe</id>
<content type='text'>
Previously the toolbar handle could be dragged beyond the top and bottom
of the window where it could get lost.

If the handle position outside the window border was saved, the only way
to get the handle back that I found would be to open the inspector and
manually change the handle's offset to make it visible once again.

This change restricts the handle so that it cannot be dragged above the
top or below the bottom of the window area.

Using `event.clientY` in order to get the cursor position relative to
the viewport instead of the document (as is the case with
`event.pageY`). This allows the handle to be dragged when the page is
scrolled.

Closes #634.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the toolbar handle could be dragged beyond the top and bottom
of the window where it could get lost.

If the handle position outside the window border was saved, the only way
to get the handle back that I found would be to open the inspector and
manually change the handle's offset to make it visible once again.

This change restricts the handle so that it cannot be dragged above the
top or below the bottom of the window area.

Using `event.clientY` in order to get the cursor position relative to
the viewport instead of the document (as is the case with
`event.pageY`). This allows the handle to be dragged when the page is
scrolled.

Closes #634.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove css text-indent hack for back and close buttons.</title>
<updated>2014-08-26T01:37:23+00:00</updated>
<author>
<name>Bo Lopker</name>
</author>
<published>2014-08-26T01:37:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=69bf1eb127f8c1b6b7c6c2e798ccd208293c1309'/>
<id>69bf1eb127f8c1b6b7c6c2e798ccd208293c1309</id>
<content type='text'>
Fixes #624.
Remove text-index
Remove old 'Back' text
Remove 'close' text
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #624.
Remove text-index
Remove old 'Back' text
Remove 'close' text
</pre>
</div>
</content>
</entry>
<entry>
<title>Keep the toolbar handle pinned to the side after drag event.</title>
<updated>2014-07-26T20:25:13+00:00</updated>
<author>
<name>David Sutherland</name>
</author>
<published>2014-07-18T02:28:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=d177aefdf14be50f24aa376813cd467ee8d4cb18'/>
<id>d177aefdf14be50f24aa376813cd467ee8d4cb18</id>
<content type='text'>
Current behaviour: after handle is moved when the window width is resized the handled keeps its absolute position rather than sticking to the right side of the window. Handle position returns to normal on page reload.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Current behaviour: after handle is moved when the window width is resized the handled keeps its absolute position rather than sticking to the right side of the window. Handle position returns to normal on page reload.
</pre>
</div>
</content>
</entry>
<entry>
<title>Making a basic javascript API for the toolbar.</title>
<updated>2014-07-16T01:30:25+00:00</updated>
<author>
<name>tschilling</name>
</author>
<published>2014-07-16T01:30:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=b80c9221b48784692a7f454ca173c4a267c9f4c0'/>
<id>b80c9221b48784692a7f454ca173c4a267c9f4c0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Get the relative top rather than the absolute top.</title>
<updated>2014-07-05T22:25:18+00:00</updated>
<author>
<name>tschilling</name>
</author>
<published>2014-07-05T22:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=ac539e5ba019a0881b4b28dc2133bcc9f74ce5e3'/>
<id>ac539e5ba019a0881b4b28dc2133bcc9f74ce5e3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Prefixing common CSS classes with djdt-</title>
<updated>2014-06-18T01:13:24+00:00</updated>
<author>
<name>tschilling</name>
</author>
<published>2014-06-18T01:13:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=a450969f03449b909716073cfea6898aa56cf54a'/>
<id>a450969f03449b909716073cfea6898aa56cf54a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #587 from living180/work_around_chrome_mousemove</title>
<updated>2014-04-25T16:59:53+00:00</updated>
<author>
<name>Aymeric Augustin</name>
</author>
<published>2014-04-25T16:59:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=33b8063e1c2bd7349558672df6d5a8f0ed9475b1'/>
<id>33b8063e1c2bd7349558672df6d5a8f0ed9475b1</id>
<content type='text'>
Work around spurious mousemove on Chrome.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Work around spurious mousemove on Chrome.</pre>
</div>
</content>
</entry>
<entry>
<title>Make the pain go away.</title>
<updated>2014-04-25T16:53:00+00:00</updated>
<author>
<name>Aymeric Augustin</name>
</author>
<published>2014-04-25T16:53:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=727b4e05f59c15904f7b08388220b7bfc76d59b2'/>
<id>727b4e05f59c15904f7b08388220b7bfc76d59b2</id>
<content type='text'>
Fix #581, #544, #541, #535 and a few others.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix #581, #544, #541, #535 and a few others.
</pre>
</div>
</content>
</entry>
<entry>
<title>Work around spurious mousemove on Chrome.</title>
<updated>2014-04-25T15:03:16+00:00</updated>
<author>
<name>Daniel Harding</name>
</author>
<published>2014-04-25T14:58:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=9bee94d9c00f856be513143927a5299388ee5f59'/>
<id>9bee94d9c00f856be513143927a5299388ee5f59</id>
<content type='text'>
When clicking on an element in Chrome, spurious mousemove events can be
generated when the cursor hasn't actually moved.  This can prevent the
toolbar from being shown when the handle is clicked because the code
sees the mousemove event and thinks a handle drag is happening.  Work
around this by only running the handle drag code if the cursor has moved
since the mousedown event.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When clicking on an element in Chrome, spurious mousemove events can be
generated when the cursor hasn't actually moved.  This can prevent the
toolbar from being shown when the handle is clicked because the code
sees the mousemove event and thinks a handle drag is happening.  Work
around this by only running the handle drag code if the cursor has moved
since the mousedown event.
</pre>
</div>
</content>
</entry>
<entry>
<title>Propagate mouseup events when not dragging toolbar</title>
<updated>2014-02-25T04:55:23+00:00</updated>
<author>
<name>David Sutherland</name>
</author>
<published>2014-02-25T04:55:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/django-debug-toolbar/commit/?id=decf92eb045a269e69604ef4650d297faceea162'/>
<id>decf92eb045a269e69604ef4650d297faceea162</id>
<content type='text'>
In Chrome (this does not affect Firefox) onchange events on multi-selects are not fired all of the time e.g. with the following template:

&lt;body&gt;
    &lt;select multiple="multiple" onchange="console.log('clicked');"&gt;
        &lt;option  value="1"&gt;1&lt;/option&gt;
    &lt;/select&gt;
&lt;/body&gt;

Ctrl click on the option and view the js log. many of the events will not register. Therefore stop propagation and prevent default action only when handle is dragged.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Chrome (this does not affect Firefox) onchange events on multi-selects are not fired all of the time e.g. with the following template:

&lt;body&gt;
    &lt;select multiple="multiple" onchange="console.log('clicked');"&gt;
        &lt;option  value="1"&gt;1&lt;/option&gt;
    &lt;/select&gt;
&lt;/body&gt;

Ctrl click on the option and view the js log. many of the events will not register. Therefore stop propagation and prevent default action only when handle is dragged.</pre>
</div>
</content>
</entry>
</feed>
