Comments (6)
I actually wanted to just add this the the base .toolbar
class. The problem is that there are tons of conflicts with the default system behavior for dragging when you aren't using a frameless window. So fixing the frameless window breaks non-frameless windows.
Not sure how to fix it up so everything always plays nicely.
from photon.
@connors Just had a thought on this - what about tagging some element higher up the tree with a generic "make draggable things draggable" class? Something like:
<div class="allow-window-drag">
<header class="toolbar toolbar-header">
<h1 class="title">Draggable Bar</h1>
</header>
</app>
from photon.
Or otherwise, just add a draggable
class:
<header class="toolbar toolbar-header toolbar-draggable">
<h1 class="title">Draggable Bar</h1>
</header>
from photon.
@developit @parro-it I like that solution. I'll create a .draggable
utility class so that you can add it as needed.
from photon.
Great, thanks, I'll add <Toolbar draggable />
to preact-photon.
from photon.
Fixed in 3da1898
from photon.
Related Issues (20)
- photon.js is identified as virus by Avira AV
- Is this project deprecated? HOT 11
- Cocoa licensing and copyright HOT 3
- Update: PhotonKit Components HOT 6
- It won't run HOT 2
- Ignore
- kq_init error on demo start HOT 2
- Project dead? HOT 5
- How to compile and install under Linux
- NEW RELEASE 1.0 HOT 7
- It's wrong HOT 2
- Can I Use Webviews with photon HOT 2
- How do I turn off the tone of the download completed?
- Is there a way to disable row highlight on table row click?
- Any update HOT 2
- Update docs download links HOT 2
- install fails HOT 3
- no fount module app HOT 2
- Error on template app HOT 3
- Documentation not sufficient HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.