mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
b4a2ced180
* ChannelView: Rename mouse event related members This is more in line with the naming of the other members as well as future members. * ChannelView: Add ability to scroll with middle mouse button * Add scrolling resources * Use custom icons for scroll cursor * Slightly refactor scrolling logic * Respect screen scaling when calculating scroll offset * Nicer scrolling UX This change allows scrolling to be feel smoother when close to the starting point. * Add scrolling with keeping middle mouse pressed This mimics the behavior of browsers as well. * Refactor ChannelView::enableScrolling * Disable drag-scrolling on left or right click
96 lines
3.1 KiB
XML
96 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
|
|
<svg
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
xmlns:cc="http://creativecommons.org/ns#"
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
xmlns:svg="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
width="32"
|
|
height="32"
|
|
viewBox="0 0 8.4666665 8.4666669"
|
|
version="1.1"
|
|
id="svg8"
|
|
inkscape:version="0.92.4 5da689c313, 2019-01-14"
|
|
sodipodi:docname="upScroll.svg"
|
|
inkscape:export-filename="/home/leon/Projects/Chatterino/chatterino2/resources/scrolling/neutralScroll.png"
|
|
inkscape:export-xdpi="7.6051788"
|
|
inkscape:export-ydpi="7.6051788">
|
|
<defs
|
|
id="defs2" />
|
|
<sodipodi:namedview
|
|
id="base"
|
|
pagecolor="#ffffff"
|
|
bordercolor="#666666"
|
|
borderopacity="1.0"
|
|
inkscape:pageopacity="0.0"
|
|
inkscape:pageshadow="2"
|
|
inkscape:zoom="15.839192"
|
|
inkscape:cx="14.417768"
|
|
inkscape:cy="15.865661"
|
|
inkscape:document-units="mm"
|
|
inkscape:current-layer="layer1"
|
|
showgrid="true"
|
|
inkscape:window-width="1918"
|
|
inkscape:window-height="1053"
|
|
inkscape:window-x="0"
|
|
inkscape:window-y="25"
|
|
inkscape:window-maximized="0"
|
|
units="px"
|
|
inkscape:pagecheckerboard="true">
|
|
<inkscape:grid
|
|
type="xygrid"
|
|
id="grid4532" />
|
|
</sodipodi:namedview>
|
|
<metadata
|
|
id="metadata5">
|
|
<rdf:RDF>
|
|
<cc:Work
|
|
rdf:about="">
|
|
<dc:format>image/svg+xml</dc:format>
|
|
<dc:type
|
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
<dc:title></dc:title>
|
|
</cc:Work>
|
|
</rdf:RDF>
|
|
</metadata>
|
|
<g
|
|
inkscape:label="Layer 1"
|
|
inkscape:groupmode="layer"
|
|
id="layer1"
|
|
transform="translate(0,-288.53332)">
|
|
<circle
|
|
style="fill:#f6f6f6;fill-opacity:1;stroke:#000000;stroke-width:0.03761128;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
id="path3719"
|
|
cx="4.2333331"
|
|
cy="292.76666"
|
|
r="4.2145276" />
|
|
<circle
|
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.05049507;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
id="path4526"
|
|
cx="4.2333317"
|
|
cy="292.76425"
|
|
r="0.72627902" />
|
|
<path
|
|
transform="matrix(0,-0.09239709,-0.09239709,0,18.596269,299.33465)"
|
|
inkscape:transform-center-y="-2.2264854"
|
|
inkscape:transform-center-x="5.0649804e-06"
|
|
d="m 112.44792,155.44792 -19.843753,11.4568 v -22.91359 z"
|
|
inkscape:randomized="0"
|
|
inkscape:rounded="0"
|
|
inkscape:flatsided="true"
|
|
sodipodi:arg2="1.0471976"
|
|
sodipodi:arg1="0"
|
|
sodipodi:r2="6.614583"
|
|
sodipodi:r1="13.229166"
|
|
sodipodi:cy="155.44792"
|
|
sodipodi:cx="99.21875"
|
|
sodipodi:sides="3"
|
|
id="path4540"
|
|
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.56499994;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
|
sodipodi:type="star" />
|
|
</g>
|
|
</svg>
|